Package net.minecraft.entity.passive
Class TurtleEntity.GoToWaterGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.MoveToBlockGoal
net.minecraft.entity.passive.TurtleEntity.GoToWaterGoal
- Enclosing class:
- TurtleEntity
-
Nested Class Summary
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.goal.MoveToBlockGoal
blockPos, mob, nextStartTick, speedModifier, tryTicks, verticalSearchStart
-
Constructor Summary
ModifierConstructorDescriptionprivate
GoToWaterGoal
(TurtleEntity p_i48819_1_, double p_i48819_2_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
canUse()
protected boolean
isValidTarget
(IWorldReader p_179488_1_, BlockPos p_179488_2_) boolean
Methods inherited from class net.minecraft.entity.ai.goal.MoveToBlockGoal
acceptedDistance, findNearestBlock, getMoveToTarget, isReachedTarget, moveMobToBlock, nextStartTick, start, tick
-
Field Details
-
turtle
-
-
Constructor Details
-
GoToWaterGoal
-
-
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
-