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
-
public class DolphinJumpGoal extends JumpGoal
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
breached
private DolphinEntity
dolphin
private int
interval
private static int[]
STEPS_TO_CHECK
-
Constructor Summary
Constructors Constructor Description DolphinJumpGoal(DolphinEntity p_i50329_1_, int p_i50329_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canContinueToUse()
boolean
canUse()
boolean
isInterruptable()
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 Detail
-
STEPS_TO_CHECK
private static final int[] STEPS_TO_CHECK
-
dolphin
private final DolphinEntity dolphin
-
interval
private final int interval
-
breached
private boolean breached
-
-
Constructor Detail
-
DolphinJumpGoal
public DolphinJumpGoal(DolphinEntity p_i50329_1_, int p_i50329_2_)
-
-
Method Detail
-
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
-
-