public abstract class MoveToBlockGoal extends Goal
修飾子とタイプ | フィールドと説明 |
---|---|
protected CreatureEntity |
creature |
protected BlockPos |
destinationBlock
Block to move to
|
protected int |
field_203112_e |
double |
movementSpeed |
protected int |
runDelay
Controls task execution delay
|
protected int |
timeoutCounter |
コンストラクタと説明 |
---|
MoveToBlockGoal(CreatureEntity creature,
double speedIn,
int length) |
MoveToBlockGoal(CreatureEntity creatureIn,
double speed,
int length,
int p_i48796_5_) |
修飾子とタイプ | メソッドと説明 |
---|---|
protected void |
func_220725_g() |
protected boolean |
getIsAboveDestination() |
protected int |
getRunDelay(CreatureEntity creatureIn) |
double |
getTargetDistanceSq() |
protected boolean |
searchForDestination()
Searches and sets new destination block and returns true if a suitable block (specified in
EntityAIMoveToBlock#shouldMoveTo(World,
BlockPos) ) can be found. |
boolean |
shouldContinueExecuting()
Returns whether an in-progress EntityAIBase should continue executing
|
boolean |
shouldExecute()
Returns whether execution should begin.
|
boolean |
shouldMove() |
protected abstract 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
|
getMutexFlags, isPreemptible, resetTask, setMutexFlags, toString
protected final CreatureEntity creature
public final double movementSpeed
protected int runDelay
protected int timeoutCounter
protected BlockPos destinationBlock
protected int field_203112_e
public MoveToBlockGoal(CreatureEntity creature, double speedIn, int length)
public MoveToBlockGoal(CreatureEntity creatureIn, double speed, int length, int p_i48796_5_)
public boolean shouldExecute()
shouldExecute
クラス内 Goal
protected int getRunDelay(CreatureEntity creatureIn)
public boolean shouldContinueExecuting()
shouldContinueExecuting
クラス内 Goal
public void startExecuting()
startExecuting
クラス内 Goal
protected void func_220725_g()
public double getTargetDistanceSq()
public void tick()
public boolean shouldMove()
protected boolean getIsAboveDestination()
protected boolean searchForDestination()
EntityAIMoveToBlock#shouldMoveTo(World,
BlockPos)
) can be found.protected abstract boolean shouldMoveTo(IWorldReader worldIn, BlockPos pos)