Class PanicTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
net.minecraft.entity.ai.brain.task.PanicTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canStillUse
(ServerWorld p_212834_1_, VillagerEntity p_212834_2_, long p_212834_3_) static boolean
hasHostile
(LivingEntity p_220513_0_) static boolean
isHurt
(LivingEntity p_220512_0_) protected void
start
(ServerWorld p_212831_1_, VillagerEntity p_212831_2_, long p_212831_3_) protected void
tick
(ServerWorld p_212833_1_, VillagerEntity p_212833_2_, long p_212833_3_) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
checkExtraStartConditions, doStop, getStatus, stop, tickOrStop, timedOut, toString, tryStart
-
Constructor Details
-
PanicTask
public PanicTask()
-
-
Method Details
-
canStillUse
protected boolean canStillUse(ServerWorld p_212834_1_, VillagerEntity p_212834_2_, long p_212834_3_) - Overrides:
canStillUse
in classTask<VillagerEntity>
-
start
- Overrides:
start
in classTask<VillagerEntity>
-
tick
- Overrides:
tick
in classTask<VillagerEntity>
-
hasHostile
-
isHurt
-