Package net.minecraft.entity.passive
Class TurtleEntity.GoHomeGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.passive.TurtleEntity.GoHomeGoal
- Enclosing class:
- TurtleEntity
static class TurtleEntity.GoHomeGoal 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 inthomeReachingTryTicksprivate booleannoPathprivate doublespeedprivate TurtleEntityturtle -
Constructor Summary
Constructors Constructor Description GoHomeGoal(TurtleEntity turtle, double speed) -
Method Summary
Modifier and Type Method Description booleancanStart()booleanshouldContinue()voidstart()voidstop()voidtick()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 -
homeReachingTryTicks
private int homeReachingTryTicks
-
-
Constructor Details
-
GoHomeGoal
GoHomeGoal(TurtleEntity turtle, double speed)
-
-
Method Details
-
canStart
public boolean canStart() -
start
public void start() -
stop
public void stop() -
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinuein classGoal
-
tick
public void tick()
-