Class DrownedEntity.TargetAboveWaterGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.mob.DrownedEntity.TargetAboveWaterGoal
Enclosing class:
DrownedEntity

static class DrownedEntity.TargetAboveWaterGoal
extends Goal
  • Field Details

    • drowned

      private final DrownedEntity drowned
    • speed

      private final double speed
    • minY

      private final int minY
    • foundTarget

      private boolean foundTarget
  • Constructor Details

    • TargetAboveWaterGoal

      public TargetAboveWaterGoal​(DrownedEntity drowned, double speed, int minY)
  • Method Details

    • canStart

      public boolean canStart()
      Specified by:
      canStart in class Goal
    • shouldContinue

      public boolean shouldContinue()
      Overrides:
      shouldContinue in class Goal
    • tick

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

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

      public void stop()
      Overrides:
      stop in class Goal