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 SummaryFieldsFields inherited from class net.minecraft.world.entity.ai.goal.MoveToBlockGoalblockPos, mob, nextStartTick, speedModifier, tryTicks, verticalSearchStart
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanbooleancanUse()protected booleanisValidTarget(LevelReader p_30270_, BlockPos p_30271_) booleanMethods inherited from class net.minecraft.world.entity.ai.goal.MoveToBlockGoalacceptedDistance, findNearestBlock, getMoveToTarget, isReachedTarget, moveMobToBlock, nextStartTick, requiresUpdateEveryTick, start, tickMethods inherited from class net.minecraft.world.entity.ai.goal.GoaladjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, setFlags, stop, toString
- 
Field Details- 
GIVE_UP_TICKSprivate static final int GIVE_UP_TICKS- See Also:
 
- 
turtle
 
- 
- 
Constructor Details- 
TurtleGoToWaterGoalTurtleGoToWaterGoal(Turtle p_30262_, double p_30263_) 
 
- 
- 
Method Details- 
canContinueToUsepublic boolean canContinueToUse()- Overrides:
- canContinueToUsein class- MoveToBlockGoal
 
- 
canUsepublic boolean canUse()- Overrides:
- canUsein class- MoveToBlockGoal
 
- 
shouldRecalculatePathpublic boolean shouldRecalculatePath()- Overrides:
- shouldRecalculatePathin class- MoveToBlockGoal
 
- 
isValidTarget- Specified by:
- isValidTargetin class- MoveToBlockGoal
 
 
-