Class Dolphin.DolphinSwimWithPlayerGoal

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.animal.Dolphin.DolphinSwimWithPlayerGoal
Enclosing class:
Dolphin

static class Dolphin.DolphinSwimWithPlayerGoal extends Goal
  • Field Details

    • dolphin

      private final Dolphin dolphin
    • speedModifier

      private final double speedModifier
    • player

      @Nullable private Player player
  • Constructor Details

    • DolphinSwimWithPlayerGoal

      DolphinSwimWithPlayerGoal(Dolphin p_28413_, double p_28414_)
  • Method Details

    • canUse

      public boolean canUse()
      Specified by:
      canUse in class Goal
    • canContinueToUse

      public boolean canContinueToUse()
      Overrides:
      canContinueToUse 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