Class TemptGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.TemptGoal
Direct Known Subclasses:
CatEntity.TemptGoal, OcelotEntity.TemptGoal

public class TemptGoal extends Goal
  • Field Details

    • TEMP_TARGETING

      private static final EntityPredicate TEMP_TARGETING
    • mob

      protected final CreatureEntity 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 PlayerEntity player
    • calmDown

      private int calmDown
    • isRunning

      private boolean isRunning
    • items

      private final Ingredient items
    • canScare

      private final boolean canScare
  • Constructor Details

    • TemptGoal

      public TemptGoal(CreatureEntity p_i47822_1_, double p_i47822_2_, Ingredient p_i47822_4_, boolean p_i47822_5_)
    • TemptGoal

      public TemptGoal(CreatureEntity p_i47823_1_, double p_i47823_2_, boolean p_i47823_4_, Ingredient p_i47823_5_)
  • Method Details

    • canUse

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

      protected boolean shouldFollowItem(ItemStack p_188508_1_)
    • 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()