Class PanicTask
- java.lang.Object
-
- net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
-
- net.minecraft.entity.ai.brain.task.PanicTask
-
public class PanicTask extends Task<VillagerEntity>
-
-
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
Constructors Constructor Description PanicTask()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanStillUse(ServerWorld p_212834_1_, VillagerEntity p_212834_2_, long p_212834_3_)static booleanhasHostile(LivingEntity p_220513_0_)static booleanisHurt(LivingEntity p_220512_0_)protected voidstart(ServerWorld p_212831_1_, VillagerEntity p_212831_2_, long p_212831_3_)protected voidtick(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
-
-
-
-
Method Detail
-
canStillUse
protected boolean canStillUse(ServerWorld p_212834_1_, VillagerEntity p_212834_2_, long p_212834_3_)
- Overrides:
canStillUsein classTask<VillagerEntity>
-
start
protected void start(ServerWorld p_212831_1_, VillagerEntity p_212831_2_, long p_212831_3_)
- Overrides:
startin classTask<VillagerEntity>
-
tick
protected void tick(ServerWorld p_212833_1_, VillagerEntity p_212833_2_, long p_212833_3_)
- Overrides:
tickin classTask<VillagerEntity>
-
hasHostile
public static boolean hasHostile(LivingEntity p_220513_0_)
-
isHurt
public static boolean isHurt(LivingEntity p_220512_0_)
-
-