Package net.minecraft.entity.passive
Class TurtleEntity.TravelGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.passive.TurtleEntity.TravelGoal
- Enclosing class:
- TurtleEntity
static class TurtleEntity.TravelGoal extends Goal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Fields Modifier and Type Field Description private boolean
noPath
private double
speed
private TurtleEntity
turtle
-
Constructor Summary
Constructors Constructor Description TravelGoal(TurtleEntity turtle, double speed)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
boolean
shouldContinue()
void
start()
void
stop()
void
tick()
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
Field Details
-
turtle
-
speed
private final double speed -
noPath
private boolean noPath
-
-
Constructor Details
-
TravelGoal
TravelGoal(TurtleEntity turtle, double speed)
-
-
Method Details
-
canStart
public boolean canStart() -
start
public void start() -
tick
public void tick() -
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classGoal
-
stop
public void stop()
-