Class ShootTongue
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<Frog>
net.minecraft.world.entity.animal.frog.ShootTongue
- All Implemented Interfaces:
BehaviorControl<Frog>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
static final int
private int
private static final float
private static final float
private final SoundEvent
private Vec3
static final int
private ShootTongue.State
static final int
static final int
private final SoundEvent
static final int
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
addUnreachableTargetToMemory
(Frog p_238444_, LivingEntity p_243335_) private boolean
canPathfindToTarget
(Frog p_238359_, LivingEntity p_238360_) protected boolean
canStillUse
(ServerLevel p_218633_, Frog p_218634_, long p_218635_) protected boolean
checkExtraStartConditions
(ServerLevel p_218630_, Frog p_218631_) private void
eatEntity
(ServerLevel p_218641_, Frog p_218642_) protected void
start
(ServerLevel p_218644_, Frog p_218645_, long p_218646_) protected void
stop
(ServerLevel p_218652_, Frog p_218653_, long p_218654_) protected void
tick
(ServerLevel p_218660_, Frog p_218661_, long p_218662_) Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
debugString, doStop, getStatus, hasRequiredMemories, tickOrStop, timedOut, tryStart
-
Field Details
-
TIME_OUT_DURATION
public static final int TIME_OUT_DURATION- See Also:
-
CATCH_ANIMATION_DURATION
public static final int CATCH_ANIMATION_DURATION- See Also:
-
TONGUE_ANIMATION_DURATION
public static final int TONGUE_ANIMATION_DURATION- See Also:
-
EATING_DISTANCE
private static final float EATING_DISTANCE- See Also:
-
EATING_MOVEMENT_FACTOR
private static final float EATING_MOVEMENT_FACTOR- See Also:
-
UNREACHABLE_TONGUE_TARGETS_COOLDOWN_DURATION
public static final int UNREACHABLE_TONGUE_TARGETS_COOLDOWN_DURATION- See Also:
-
MAX_UNREACHBLE_TONGUE_TARGETS_IN_MEMORY
public static final int MAX_UNREACHBLE_TONGUE_TARGETS_IN_MEMORY- See Also:
-
eatAnimationTimer
private int eatAnimationTimer -
calculatePathCounter
private int calculatePathCounter -
tongueSound
-
eatSound
-
itemSpawnPos
-
state
-
-
Constructor Details
-
ShootTongue
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<Frog>
-
canStillUse
- Overrides:
canStillUse
in classBehavior<Frog>
-
start
-
stop
-
eatEntity
-
tick
-
canPathfindToTarget
-
addUnreachableTargetToMemory
-