public class PanicTask extends Task<VillagerEntity>
Task.Status
Constructor and Description |
---|
PanicTask() |
Modifier and Type | Method and Description |
---|---|
static boolean |
hasBeenHurt(LivingEntity p_220512_0_) |
static boolean |
hostileNearby(LivingEntity p_220513_0_) |
protected boolean |
shouldContinueExecuting(ServerWorld worldIn,
VillagerEntity entityIn,
long gameTimeIn) |
protected void |
startExecuting(ServerWorld worldIn,
VillagerEntity entityIn,
long gameTimeIn) |
protected void |
updateTask(ServerWorld worldIn,
VillagerEntity owner,
long gameTime) |
getStatus, isTimedOut, resetTask, shouldExecute, start, stop, tick, toString
protected boolean shouldContinueExecuting(ServerWorld worldIn, VillagerEntity entityIn, long gameTimeIn)
shouldContinueExecuting
in class Task<VillagerEntity>
protected void startExecuting(ServerWorld worldIn, VillagerEntity entityIn, long gameTimeIn)
startExecuting
in class Task<VillagerEntity>
protected void updateTask(ServerWorld worldIn, VillagerEntity owner, long gameTime)
updateTask
in class Task<VillagerEntity>
public static boolean hostileNearby(LivingEntity p_220513_0_)
public static boolean hasBeenHurt(LivingEntity p_220512_0_)