Class WrappedGoal

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.WrappedGoal

public class WrappedGoal extends Goal
  • Field Details

    • goal

      private final Goal goal
    • priority

      private final int priority
    • isRunning

      private boolean isRunning
  • Constructor Details

    • WrappedGoal

      public WrappedGoal(int p_25998_, Goal p_25999_)
  • Method Details

    • canBeReplacedBy

      public boolean canBeReplacedBy(WrappedGoal p_26003_)
    • canUse

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

      public boolean canContinueToUse()
      Overrides:
      canContinueToUse in class Goal
    • 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
    • requiresUpdateEveryTick

      public boolean requiresUpdateEveryTick()
      Overrides:
      requiresUpdateEveryTick in class Goal
    • adjustedTickDelay

      protected int adjustedTickDelay(int p_186092_)
      Overrides:
      adjustedTickDelay in class Goal
    • tick

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

      public void setFlags(EnumSet<Goal.Flag> p_26005_)
      Overrides:
      setFlags in class Goal
    • getFlags

      public EnumSet<Goal.Flag> getFlags()
      Overrides:
      getFlags in class Goal
    • isRunning

      public boolean isRunning()
    • getPriority

      public int getPriority()
    • getGoal

      public Goal getGoal()
    • equals

      public boolean equals(@Nullable Object p_26011_)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object