Class Turtle.TurtleGoHomeGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.animal.turtle.Turtle.TurtleGoHomeGoal
- Enclosing class:
Turtle
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate static final intprivate final doubleprivate booleanprivate final Turtle -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Goal
adjustedTickDelay, getFlags, getServerLevel, getServerLevel, 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 turtle, double speedModifier)
-
-
Method Details
-
canUse
-
start
-
stop
-
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUsein classGoal
-
tick
-