Package net.minecraft.entity.ai.goal
Class DolphinJumpGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.JumpGoal
net.minecraft.entity.ai.goal.DolphinJumpGoal
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private final DolphinEntity
private final int
private static final int[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
canUse()
boolean
void
start()
void
stop()
private boolean
surfaceIsClear
(BlockPos p_220708_1_, int p_220708_2_, int p_220708_3_, int p_220708_4_) void
tick()
private boolean
waterIsClear
(BlockPos p_220709_1_, int p_220709_2_, int p_220709_3_, int p_220709_4_)
-
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
private boolean waterIsClear(BlockPos p_220709_1_, int p_220709_2_, int p_220709_3_, int p_220709_4_) -
surfaceIsClear
private boolean surfaceIsClear(BlockPos p_220708_1_, int p_220708_2_, int p_220708_3_, int p_220708_4_) -
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUse
in classGoal
-
isInterruptable
public boolean isInterruptable()- Overrides:
isInterruptable
in classGoal
-
start
public void start() -
stop
public void stop() -
tick
public void tick()
-