static class TurtleEntity.LayEggGoal extends MoveToTargetPosGoal
Goal.Control
Modifier and Type | Field and Description |
---|---|
private TurtleEntity |
turtle |
cooldown, lowestY, mob, speed, targetPos, tryingTime
Constructor and Description |
---|
LayEggGoal(TurtleEntity turtle,
double speed) |
Modifier and Type | Method and Description |
---|---|
boolean |
canStart() |
protected boolean |
isTargetPos(WorldView world,
BlockPos pos) |
boolean |
shouldContinue() |
void |
tick() |
findTargetPos, getDesiredSquaredDistanceToTarget, getInterval, getTargetPos, hasReached, shouldResetPath, start, startMovingToTarget
canStop, getControls, setControls, stop, toString
private final TurtleEntity turtle
LayEggGoal(TurtleEntity turtle, double speed)
public boolean canStart()
canStart
in class MoveToTargetPosGoal
public boolean shouldContinue()
shouldContinue
in class MoveToTargetPosGoal
public void tick()
tick
in class MoveToTargetPosGoal
protected boolean isTargetPos(WorldView world, BlockPos pos)
isTargetPos
in class MoveToTargetPosGoal