Package net.minecraft.entity.passive
Class TurtleEntity.WanderInWaterGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.MoveToTargetPosGoal
net.minecraft.entity.passive.TurtleEntity.WanderInWaterGoal
- Enclosing class:
- TurtleEntity
static class TurtleEntity.WanderInWaterGoal extends MoveToTargetPosGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control -
Field Summary
Fields Modifier and Type Field Description private TurtleEntityturtleFields inherited from class net.minecraft.entity.ai.goal.MoveToTargetPosGoal
cooldown, lowestY, mob, speed, targetPos, tryingTime -
Constructor Summary
Constructors Modifier Constructor Description privateWanderInWaterGoal(TurtleEntity turtle, double speed) -
Method Summary
Modifier and Type Method Description booleancanStart()protected booleanisTargetPos(WorldView world, BlockPos pos)booleanshouldContinue()booleanshouldResetPath()Methods inherited from class net.minecraft.entity.ai.goal.MoveToTargetPosGoal
findTargetPos, getDesiredSquaredDistanceToTarget, getInterval, getTargetPos, hasReached, start, startMovingToTarget, tickMethods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, stop, toString
-
Field Details
-
turtle
-
-
Constructor Details
-
WanderInWaterGoal
-
-
Method Details
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinuein classMoveToTargetPosGoal
-
canStart
public boolean canStart()- Overrides:
canStartin classMoveToTargetPosGoal
-
shouldResetPath
public boolean shouldResetPath()- Overrides:
shouldResetPathin classMoveToTargetPosGoal
-
isTargetPos
- Specified by:
isTargetPosin classMoveToTargetPosGoal
-