Class Turtle.TurtleGoToWaterGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.MoveToBlockGoal
net.minecraft.world.entity.animal.Turtle.TurtleGoToWaterGoal
- Enclosing class:
- Turtle
-
Nested Class Summary
-
Field Summary
Fields inherited from class net.minecraft.world.entity.ai.goal.MoveToBlockGoal
blockPos, mob, nextStartTick, speedModifier, tryTicks, verticalSearchStart
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
canUse()
protected boolean
isValidTarget
(LevelReader p_30270_, BlockPos p_30271_) boolean
Methods inherited from class net.minecraft.world.entity.ai.goal.MoveToBlockGoal
acceptedDistance, findNearestBlock, getMoveToTarget, isReachedTarget, moveMobToBlock, nextStartTick, requiresUpdateEveryTick, start, tick
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, setFlags, stop, toString
-
Field Details
-
GIVE_UP_TICKS
private static final int GIVE_UP_TICKS- See Also:
-
turtle
-
-
Constructor Details
-
TurtleGoToWaterGoal
TurtleGoToWaterGoal(Turtle p_30262_, double p_30263_)
-
-
Method Details
-
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUse
in classMoveToBlockGoal
-
canUse
public boolean canUse()- Overrides:
canUse
in classMoveToBlockGoal
-
shouldRecalculatePath
public boolean shouldRecalculatePath()- Overrides:
shouldRecalculatePath
in classMoveToBlockGoal
-
isValidTarget
- Specified by:
isValidTarget
in classMoveToBlockGoal
-