public class FoxEntity.EatBerriesGoal extends MoveToBlockGoal
修飾子とタイプ | フィールドと説明 |
---|---|
protected int |
field_220731_g |
creature, destinationBlock, field_203112_e, movementSpeed, runDelay, timeoutCounter
コンストラクタと説明 |
---|
EatBerriesGoal(double p_i50737_2_,
int p_i50737_4_,
int p_i50737_5_) |
修飾子とタイプ | メソッドと説明 |
---|---|
protected void |
eatBerry() |
double |
getTargetDistanceSq() |
boolean |
shouldExecute()
Returns whether execution should begin.
|
boolean |
shouldMove() |
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, searchForDestination, shouldContinueExecuting
getMutexFlags, isPreemptible, resetTask, setMutexFlags, toString
public EatBerriesGoal(double p_i50737_2_, int p_i50737_4_, int p_i50737_5_)
public double getTargetDistanceSq()
getTargetDistanceSq
クラス内 MoveToBlockGoal
public boolean shouldMove()
shouldMove
クラス内 MoveToBlockGoal
protected boolean shouldMoveTo(IWorldReader worldIn, BlockPos pos)
shouldMoveTo
クラス内 MoveToBlockGoal
public void tick()
tick
クラス内 MoveToBlockGoal
protected void eatBerry()
public boolean shouldExecute()
shouldExecute
クラス内 MoveToBlockGoal
public void startExecuting()
startExecuting
クラス内 MoveToBlockGoal