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, shouldContinueExecutinggetMutexFlags, isPreemptible, resetTask, setMutexFlags, toStringpublic EatBerriesGoal(double p_i50737_2_,
int p_i50737_4_,
int p_i50737_5_)
public double getTargetDistanceSq()
getTargetDistanceSq クラス内 MoveToBlockGoalpublic boolean shouldMove()
shouldMove クラス内 MoveToBlockGoalprotected boolean shouldMoveTo(IWorldReader worldIn, BlockPos pos)
shouldMoveTo クラス内 MoveToBlockGoalpublic void tick()
tick クラス内 MoveToBlockGoalprotected void eatBerry()
public boolean shouldExecute()
shouldExecute クラス内 MoveToBlockGoalpublic void startExecuting()
startExecuting クラス内 MoveToBlockGoal