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 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
-
-
-
-
Method Detail
-
canStillUse
protected boolean canStillUse(ServerWorld p_212834_1_, VillagerEntity p_212834_2_, long p_212834_3_)
- Overrides:
canStillUse
in classTask<VillagerEntity>
-
start
protected void start(ServerWorld p_212831_1_, VillagerEntity p_212831_2_, long p_212831_3_)
- Overrides:
start
in classTask<VillagerEntity>
-
tick
protected void tick(ServerWorld p_212833_1_, VillagerEntity p_212833_2_, long p_212833_3_)
- Overrides:
tick
in classTask<VillagerEntity>
-
hasHostile
public static boolean hasHostile(LivingEntity p_220513_0_)
-
isHurt
public static boolean isHurt(LivingEntity p_220512_0_)
-
-