public class BreakBlockGoal extends MoveToBlockGoal
Modifier and Type | Field and Description |
---|---|
private Block |
block |
private int |
breakingTime |
private MobEntity |
entity |
creature, destinationBlock, field_203112_e, movementSpeed, runDelay, timeoutCounter
Constructor and Description |
---|
BreakBlockGoal(Block blockIn,
CreatureEntity creature,
double speed,
int yMax) |
Modifier and Type | Method and Description |
---|---|
private BlockPos |
findTarget(BlockPos pos,
IBlockReader worldIn) |
private boolean |
func_220729_m() |
void |
playBreakingSound(IWorld worldIn,
BlockPos pos) |
void |
playBrokenSound(World worldIn,
BlockPos pos) |
void |
resetTask() |
boolean |
shouldExecute() |
protected boolean |
shouldMoveTo(IWorldReader worldIn,
BlockPos pos) |
void |
startExecuting() |
void |
tick() |
func_220725_g, getIsAboveDestination, getRunDelay, getTargetDistanceSq, searchForDestination, shouldContinueExecuting, shouldMove
getMutexFlags, isPreemptible, setMutexFlags, toString
private final Block block
private final MobEntity entity
private int breakingTime
public BreakBlockGoal(Block blockIn, CreatureEntity creature, double speed, int yMax)
public boolean shouldExecute()
shouldExecute
in class MoveToBlockGoal
private boolean func_220729_m()
public void startExecuting()
startExecuting
in class MoveToBlockGoal
public void tick()
tick
in class MoveToBlockGoal
@Nullable private BlockPos findTarget(BlockPos pos, IBlockReader worldIn)
protected boolean shouldMoveTo(IWorldReader worldIn, BlockPos pos)
shouldMoveTo
in class MoveToBlockGoal