Class DolphinEntity.SwimWithPlayerGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.passive.DolphinEntity.SwimWithPlayerGoal
Enclosing class:
DolphinEntity

static class DolphinEntity.SwimWithPlayerGoal extends Goal
  • Field Details

    • dolphin

      private final DolphinEntity dolphin
    • speedModifier

      private final double speedModifier
    • player

      private PlayerEntity player
  • Constructor Details

    • SwimWithPlayerGoal

      SwimWithPlayerGoal(DolphinEntity p_i48994_1_, double p_i48994_2_)
  • 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