Class Turtle.TurtleGoHomeGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.animal.Turtle.TurtleGoHomeGoal
- Enclosing class:
- Turtle
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private static final int
private final double
private boolean
private final Turtle
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, toString
-
Field Details
-
turtle
-
speedModifier
private final double speedModifier -
stuck
private boolean stuck -
closeToHomeTryTicks
private int closeToHomeTryTicks -
GIVE_UP_TICKS
private static final int GIVE_UP_TICKS- See Also:
-
-
Constructor Details
-
TurtleGoHomeGoal
TurtleGoHomeGoal(Turtle p_30253_, double p_30254_)
-
-
Method Details
-
canUse
public boolean canUse() -
start
public void start() -
stop
public void stop() -
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUse
in classGoal
-
tick
public void tick()
-