public class EntityAIBreakBlock extends EntityAIMoveToBlock
destinationBlock, field_203112_e, movementSpeed, runDelay, timeoutCounter
Constructor and Description |
---|
EntityAIBreakBlock(Block p_i48795_1_,
EntityCreature p_i48795_2_,
double p_i48795_3_,
int p_i48795_5_) |
Modifier and Type | Method and Description |
---|---|
protected int |
getRunDelay(EntityCreature p_203109_1_) |
void |
playBreakingSound(IWorld p_203114_1_,
BlockPos p_203114_2_) |
void |
playBrokenSound(World p_203116_1_,
BlockPos p_203116_2_) |
void |
resetTask() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
protected boolean |
shouldMoveTo(IWorldReaderBase worldIn,
BlockPos pos) |
void |
startExecuting() |
void |
tick() |
getIsAboveDestination, getTargetDistanceSq, getTargetYOffset, shouldMove
getMutexBits, isInterruptible, setMutexBits
public EntityAIBreakBlock(Block p_i48795_1_, EntityCreature p_i48795_2_, double p_i48795_3_, int p_i48795_5_)
public boolean shouldExecute()
shouldExecute
in class EntityAIMoveToBlock
protected int getRunDelay(EntityCreature p_203109_1_)
getRunDelay
in class EntityAIMoveToBlock
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class EntityAIMoveToBlock
public void resetTask()
resetTask
in class EntityAIBase
public void startExecuting()
startExecuting
in class EntityAIMoveToBlock
public void tick()
tick
in class EntityAIMoveToBlock
protected boolean shouldMoveTo(IWorldReaderBase worldIn, BlockPos pos)
shouldMoveTo
in class EntityAIMoveToBlock