Class TemptGoal

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.TemptGoal
Direct Known Subclasses:
Cat.CatTemptGoal, Ocelot.OcelotTemptGoal, TemptGoal.ForNonPathfinders

public class TemptGoal extends Goal
  • Field Details

    • TEMPT_TARGETING

      private static final TargetingConditions TEMPT_TARGETING
    • DEFAULT_STOP_DISTANCE

      private static final double DEFAULT_STOP_DISTANCE
      See Also:
    • targetingConditions

      private final TargetingConditions targetingConditions
    • mob

      protected final Mob mob
    • speedModifier

      protected final double speedModifier
    • px

      private double px
    • py

      private double py
    • pz

      private double pz
    • pRotX

      private double pRotX
    • pRotY

      private double pRotY
    • player

      @Nullable protected Player player
    • calmDown

      private int calmDown
    • isRunning

      private boolean isRunning
    • items

      private final Predicate<ItemStack> items
    • canScare

      private final boolean canScare
    • stopDistance

      private final double stopDistance
  • Constructor Details

  • Method Details

    • canUse

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

      private boolean shouldFollow(LivingEntity pEntity)
    • canContinueToUse

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

      protected boolean canScare()
    • 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
    • stopNavigation

      protected void stopNavigation()
    • isRunning

      public boolean isRunning()