public class FoxEntity.EatBerriesGoal extends MoveToBlockGoal
Modifier and Type | Field and Description |
---|---|
protected int |
field_220731_g |
creature, destinationBlock, field_203112_e, movementSpeed, runDelay, timeoutCounter
Constructor and Description |
---|
EatBerriesGoal(double p_i50737_2_,
int p_i50737_4_,
int p_i50737_5_) |
Modifier and Type | Method and Description |
---|---|
protected void |
eatBerry() |
double |
getTargetDistanceSq() |
boolean |
shouldExecute() |
boolean |
shouldMove() |
protected boolean |
shouldMoveTo(IWorldReader worldIn,
BlockPos pos) |
void |
startExecuting() |
void |
tick() |
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
in class MoveToBlockGoal
public boolean shouldMove()
shouldMove
in class MoveToBlockGoal
protected boolean shouldMoveTo(IWorldReader worldIn, BlockPos pos)
shouldMoveTo
in class MoveToBlockGoal
public void tick()
tick
in class MoveToBlockGoal
protected void eatBerry()
public boolean shouldExecute()
shouldExecute
in class MoveToBlockGoal
public void startExecuting()
startExecuting
in class MoveToBlockGoal