public class FoxEntity.EatSweetBerriesGoal extends MoveToTargetPosGoal
Goal.Control
Modifier and Type | Field and Description |
---|---|
protected int |
timer |
cooldown, lowestY, mob, speed, targetPos, tryingTime
Constructor and Description |
---|
EatSweetBerriesGoal(double speed,
int range,
int maxYDifference) |
Modifier and Type | Method and Description |
---|---|
boolean |
canStart() |
protected void |
eatSweetBerry() |
double |
getDesiredSquaredDistanceToTarget() |
protected boolean |
isTargetPos(WorldView world,
BlockPos pos) |
boolean |
shouldResetPath() |
void |
start() |
void |
tick() |
findTargetPos, getInterval, getTargetPos, hasReached, shouldContinue, startMovingToTarget
canStop, getControls, setControls, stop, toString
public EatSweetBerriesGoal(double speed, int range, int maxYDifference)
public double getDesiredSquaredDistanceToTarget()
getDesiredSquaredDistanceToTarget
in class MoveToTargetPosGoal
public boolean shouldResetPath()
shouldResetPath
in class MoveToTargetPosGoal
protected boolean isTargetPos(WorldView world, BlockPos pos)
isTargetPos
in class MoveToTargetPosGoal
public void tick()
tick
in class MoveToTargetPosGoal
protected void eatSweetBerry()
public boolean canStart()
canStart
in class MoveToTargetPosGoal
public void start()
start
in class MoveToTargetPosGoal