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 pPos, int pDx, int pDz, int pScale) voidtick()private booleanwaterIsClear(BlockPos pPos, int pDx, int pDz, int pScale) Methods inherited from class net.minecraft.world.entity.ai.goal.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
public boolean canUse() -
waterIsClear
-
surfaceIsClear
-
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUsein classGoal
-
isInterruptable
public boolean isInterruptable()- Overrides:
isInterruptablein classGoal
-
start
public void start() -
stop
public void stop() -
tick
public void tick()
-