Class DolphinJumpGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.JumpGoal
net.minecraft.world.entity.ai.goal.DolphinJumpGoal
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final Dolphinprivate final intprivate static final int[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancanUse()booleanvoidstart()voidstop()private booleansurfaceIsClear(BlockPos dolphinPos, int stepX, int stepZ, int currentStep) voidtick()private booleanwaterIsClear(BlockPos dolphinPos, int stepX, int stepZ, int currentStep) Methods inherited from class Goal
adjustedTickDelay, getFlags, getServerLevel, getServerLevel, reducedTickDelay, requiresUpdateEveryTick, setFlags, toString
-
Field Details
-
STEPS_TO_CHECK
private static final int[] STEPS_TO_CHECK -
dolphin
-
interval
private final int interval -
breached
private boolean breached
-
-
Constructor Details
-
DolphinJumpGoal
-
-
Method Details
-
canUse
-
waterIsClear
-
surfaceIsClear
-
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUsein classGoal
-
isInterruptable
public boolean isInterruptable()- Overrides:
isInterruptablein classGoal
-
start
-
stop
-
tick
-