public abstract class EntityAIMoveToBlock extends EntityAIBase
| Modifier and Type | Field and Description |
|---|---|
protected BlockPos |
destinationBlock |
int |
field_203112_e |
double |
movementSpeed |
protected int |
runDelay |
protected int |
timeoutCounter |
| Constructor and Description |
|---|
EntityAIMoveToBlock(EntityCreature creature,
double speedIn,
int length) |
EntityAIMoveToBlock(EntityCreature creatureIn,
double speed,
int length,
int p_i48796_5_) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
getIsAboveDestination() |
protected int |
getRunDelay(EntityCreature p_203109_1_) |
double |
getTargetDistanceSq() |
int |
getTargetYOffset() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
boolean |
shouldMove() |
protected abstract boolean |
shouldMoveTo(IWorldReaderBase worldIn,
BlockPos pos) |
void |
startExecuting() |
void |
tick() |
getMutexBits, isInterruptible, resetTask, setMutexBitspublic double movementSpeed
protected int runDelay
protected int timeoutCounter
protected BlockPos destinationBlock
public int field_203112_e
public EntityAIMoveToBlock(EntityCreature creature, double speedIn, int length)
public EntityAIMoveToBlock(EntityCreature creatureIn, double speed, int length, int p_i48796_5_)
public boolean shouldExecute()
shouldExecute in class EntityAIBaseprotected int getRunDelay(EntityCreature p_203109_1_)
public boolean shouldContinueExecuting()
shouldContinueExecuting in class EntityAIBasepublic void startExecuting()
startExecuting in class EntityAIBasepublic double getTargetDistanceSq()
public void tick()
tick in class EntityAIBasepublic boolean shouldMove()
public int getTargetYOffset()
protected boolean getIsAboveDestination()
protected abstract boolean shouldMoveTo(IWorldReaderBase worldIn, BlockPos pos)