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

public class TemptGoal extends Goal
  • Field Details

    • TEMP_TARGETING

      private static final TargetingConditions TEMP_TARGETING
    • targetingConditions

      private final TargetingConditions targetingConditions
    • mob

      protected final PathfinderMob mob
    • speedModifier

      private final double speedModifier
    • px

      private double px
    • py

      private double py
    • pz

      private double pz
    • pRotX

      private double pRotX
    • pRotY

      private double pRotY
    • player

      protected Player player
    • calmDown

      private int calmDown
    • isRunning

      private boolean isRunning
    • items

      private final Ingredient items
    • canScare

      private final boolean canScare
  • Constructor Details

    • TemptGoal

      public TemptGoal(PathfinderMob p_25939_, double p_25940_, Ingredient p_25941_, boolean p_25942_)
  • Method Details

    • canUse

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

      private boolean shouldFollow(LivingEntity p_148139_)
    • 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
    • isRunning

      public boolean isRunning()