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

      @Nullable protected Player player
    • calmDown

      private int calmDown
    • isRunning

      private boolean isRunning
    • items

      private final Ingredient items
    • canScare

      private final boolean canScare
  • Constructor Details

  • 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()