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 Behavior
Behavior.Status -
Field Summary
Fields inherited from class Behavior
DEFAULT_DURATION, entryCondition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanStillUse(ServerLevel level, Villager body, long timestamp) static booleanhasHostile(LivingEntity myBody) static booleanisHurt(LivingEntity myBody) protected voidstart(ServerLevel level, Villager body, long timestamp) protected voidtick(ServerLevel level, Villager body, long timestamp) Methods inherited from class Behavior
checkExtraStartConditions, debugString, doStop, getRequiredMemories, getStatus, hasRequiredMemories, stop, tickOrStop, timedOut, tryStart