Class AnimalPanic
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<PathfinderMob>
net.minecraft.world.entity.ai.behavior.AnimalPanic
- All Implemented Interfaces:
- BehaviorControl<PathfinderMob>
- Direct Known Subclasses:
- CamelAi.CamelPanic
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.BehaviorBehavior.Status
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final Predicate<PathfinderMob>private static final intprivate static final intprivate static final intprivate static final intprivate final Predicate<PathfinderMob>private final floatFields inherited from class net.minecraft.world.entity.ai.behavior.BehaviorDEFAULT_DURATION, entryCondition
- 
Constructor SummaryConstructorsConstructorDescriptionAnimalPanic(float p_147385_) AnimalPanic(float p_275357_, Predicate<PathfinderMob> p_275369_) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleancanStillUse(ServerLevel p_147391_, PathfinderMob p_147392_, long p_147393_) protected booleancheckExtraStartConditions(ServerLevel p_275286_, PathfinderMob p_275721_) private Vec3getPanicPos(PathfinderMob p_196639_, ServerLevel p_196640_) lookForWater(BlockGetter p_196642_, Entity p_196643_) protected voidstart(ServerLevel p_147399_, PathfinderMob p_147400_, long p_147401_) protected voidstop(ServerLevel p_217118_, PathfinderMob p_217119_, long p_217120_) protected voidtick(ServerLevel p_147403_, PathfinderMob p_147404_, long p_147405_) Methods inherited from class net.minecraft.world.entity.ai.behavior.BehaviordebugString, doStop, getStatus, hasRequiredMemories, tickOrStop, timedOut, tryStart
- 
Field Details- 
PANIC_MIN_DURATIONprivate static final int PANIC_MIN_DURATION- See Also:
 
- 
PANIC_MAX_DURATIONprivate static final int PANIC_MAX_DURATION- See Also:
 
- 
PANIC_DISTANCE_HORIZONTALprivate static final int PANIC_DISTANCE_HORIZONTAL- See Also:
 
- 
PANIC_DISTANCE_VERTICALprivate static final int PANIC_DISTANCE_VERTICAL- See Also:
 
- 
DEFAULT_SHOULD_PANIC_PREDICATE
- 
speedMultiplierprivate final float speedMultiplier
- 
shouldPanic
 
- 
- 
Constructor Details- 
AnimalPanicpublic AnimalPanic(float p_147385_) 
- 
AnimalPanic
 
- 
- 
Method Details- 
checkExtraStartConditions- Overrides:
- checkExtraStartConditionsin class- Behavior<PathfinderMob>
 
- 
canStillUse- Overrides:
- canStillUsein class- Behavior<PathfinderMob>
 
- 
start- Overrides:
- startin class- Behavior<PathfinderMob>
 
- 
stop- Overrides:
- stopin class- Behavior<PathfinderMob>
 
- 
tick- Overrides:
- tickin class- Behavior<PathfinderMob>
 
- 
getPanicPos
- 
lookForWater
 
-