Class Turtle.TurtleGoHomeGoal

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.animal.Turtle.TurtleGoHomeGoal
Enclosing class:
Turtle

static class Turtle.TurtleGoHomeGoal extends Goal
  • Field Details

    • turtle

      private final Turtle turtle
    • speedModifier

      private final double speedModifier
    • stuck

      private boolean stuck
    • closeToHomeTryTicks

      private int closeToHomeTryTicks
    • GIVE_UP_TICKS

      private static final int GIVE_UP_TICKS
      See Also:
      Constant Field Values
  • Constructor Details

    • TurtleGoHomeGoal

      TurtleGoHomeGoal(Turtle p_30253_, double p_30254_)
  • Method Details

    • canUse

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

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

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

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

      public void tick()
      Overrides:
      tick in class Goal