Class DolphinJumpGoal


  • public class DolphinJumpGoal
    extends JumpGoal
    • Field Detail

      • STEPS_TO_CHECK

        private static final int[] STEPS_TO_CHECK
      • interval

        private final int interval
      • breached

        private boolean breached
    • Constructor Detail

      • DolphinJumpGoal

        public DolphinJumpGoal​(DolphinEntity p_i50329_1_,
                               int p_i50329_2_)
    • Method Detail

      • 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_)
      • 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