public class BreakBlockGoal extends MoveToBlockGoal
creature, destinationBlock, field_203112_e, movementSpeed, runDelay, timeoutCounter
コンストラクタと説明 |
---|
BreakBlockGoal(Block blockIn,
CreatureEntity creature,
double speed,
int yMax) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
playBreakingSound(IWorld worldIn,
BlockPos pos) |
void |
playBrokenSound(World worldIn,
BlockPos pos) |
void |
resetTask()
Reset the task's internal state.
|
boolean |
shouldExecute()
Returns whether execution should begin.
|
protected boolean |
shouldMoveTo(IWorldReader worldIn,
BlockPos pos)
Return true to set given position as destination
|
void |
startExecuting()
Execute a one shot task or start executing a continuous task
|
void |
tick()
Keep ticking a continuous task that has already been started
|
func_220725_g, getIsAboveDestination, getRunDelay, getTargetDistanceSq, searchForDestination, shouldContinueExecuting, shouldMove
getMutexFlags, isPreemptible, setMutexFlags, toString
public BreakBlockGoal(Block blockIn, CreatureEntity creature, double speed, int yMax)
public boolean shouldExecute()
shouldExecute
クラス内 MoveToBlockGoal
public void resetTask()
public void startExecuting()
startExecuting
クラス内 MoveToBlockGoal
public void tick()
tick
クラス内 MoveToBlockGoal
protected boolean shouldMoveTo(IWorldReader worldIn, BlockPos pos)
shouldMoveTo
クラス内 MoveToBlockGoal