Class DolphinJumpGoal


public class DolphinJumpGoal extends JumpGoal
  • Field Details

    • 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 Details

    • DolphinJumpGoal

      public DolphinJumpGoal(DolphinEntity p_i50329_1_, int p_i50329_2_)
  • Method Details

    • canUse

      public boolean canUse()
      Specified by:
      canUse in class Goal
    • 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 class Goal
    • isInterruptable

      public boolean isInterruptable()
      Overrides:
      isInterruptable in class Goal
    • start

      public void start()
      Overrides:
      start in class Goal
    • stop

      public void stop()
      Overrides:
      stop in class Goal
    • tick

      public void tick()
      Overrides:
      tick in class Goal