Package net.minecraft.entity.mob
Class DrownedEntity.LeaveWaterGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.MoveToTargetPosGoal
net.minecraft.entity.mob.DrownedEntity.LeaveWaterGoal
- Enclosing class:
- DrownedEntity
static class DrownedEntity.LeaveWaterGoal 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 DrownedEntitydrownedFields inherited from class net.minecraft.entity.ai.goal.MoveToTargetPosGoal
cooldown, lowestY, mob, speed, targetPos, tryingTime -
Constructor Summary
Constructors Constructor Description LeaveWaterGoal(DrownedEntity drowned, double speed) -
Method Summary
Modifier and Type Method Description booleancanStart()protected booleanisTargetPos(WorldView world, BlockPos pos)booleanshouldContinue()voidstart()voidstop()Methods inherited from class net.minecraft.entity.ai.goal.MoveToTargetPosGoal
findTargetPos, getDesiredSquaredDistanceToTarget, getInterval, getTargetPos, hasReached, shouldResetPath, startMovingToTarget, tickMethods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
Field Details
-
drowned
-
-
Constructor Details
-
LeaveWaterGoal
-
-
Method Details
-
canStart
public boolean canStart()- Overrides:
canStartin classMoveToTargetPosGoal
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinuein classMoveToTargetPosGoal
-
isTargetPos
- Specified by:
isTargetPosin classMoveToTargetPosGoal
-
start
public void start()- Overrides:
startin classMoveToTargetPosGoal
-
stop
public void stop()
-