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.Turtle.TurtleGoToWaterGoal
- Enclosing class:
Turtle
-
Nested Class Summary
-
Field Summary
FieldsFields inherited from class MoveToBlockGoal
blockPos, mob, nextStartTick, speedModifier, tryTicks, verticalSearchStart -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancanUse()protected booleanisValidTarget(LevelReader level, BlockPos pos) Returntrueto set given position as destinationbooleanMethods inherited from class MoveToBlockGoal
acceptedDistance, findNearestBlock, getMoveToTarget, isReachedTarget, moveMobToBlock, nextStartTick, requiresUpdateEveryTick, start, tickMethods inherited from class Goal
adjustedTickDelay, getFlags, getServerLevel, getServerLevel, isInterruptable, reducedTickDelay, setFlags, stop, toString
-
Field Details
-
GIVE_UP_TICKS
private static final int GIVE_UP_TICKS- See Also:
-
turtle
-
-
Constructor Details
-
TurtleGoToWaterGoal
-
-
Method Details
-
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUsein classMoveToBlockGoal
-
canUse
public boolean canUse()- Overrides:
canUsein classMoveToBlockGoal
-
shouldRecalculatePath
public boolean shouldRecalculatePath()- Overrides:
shouldRecalculatePathin classMoveToBlockGoal
-
isValidTarget
Returntrueto set given position as destination- Specified by:
isValidTargetin classMoveToBlockGoal
-