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 boolean
canStillUse
(ServerLevel pLevel, Villager pEntity, long pGameTime) static boolean
hasHostile
(LivingEntity pEntity) static boolean
isHurt
(LivingEntity pEntity) protected void
start
(ServerLevel pLevel, Villager pEntity, long pGameTime) protected void
tick
(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