Class VillagerPanicTrigger
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<Villager>
net.minecraft.world.entity.ai.behavior.VillagerPanicTrigger
- All Implemented Interfaces:
BehaviorControl<Villager>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status -
Field Summary
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanStillUse(ServerLevel pLevel, Villager pEntity, long pGameTime) static booleanhasHostile(LivingEntity pEntity) static booleanisHurt(LivingEntity pEntity) protected voidstart(ServerLevel pLevel, Villager pEntity, long pGameTime) protected voidtick(ServerLevel pLevel, Villager pOwner, long pGameTime) Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
checkExtraStartConditions, debugString, doStop, getStatus, hasRequiredMemories, stop, tickOrStop, timedOut, tryStart