Class TemptGoal

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

public class TemptGoal extends Goal
Mappings:
Namespace Name
official bup
intermediary net/minecraft/class_1391
named net/minecraft/entity/ai/goal/TemptGoal
  • Field Details

    • TEMPTING_ENTITY_PREDICATE

      private static final TargetPredicate TEMPTING_ENTITY_PREDICATE
      Mappings:
      Namespace Name Mixin selector
      official c Lbup;c:Lbwz;
      intermediary field_18090 Lnet/minecraft/class_1391;field_18090:Lnet/minecraft/class_4051;
      named TEMPTING_ENTITY_PREDICATE Lnet/minecraft/entity/ai/goal/TemptGoal;TEMPTING_ENTITY_PREDICATE:Lnet/minecraft/entity/ai/TargetPredicate;
    • predicate

      private final TargetPredicate predicate
      Mappings:
      Namespace Name Mixin selector
      official d Lbup;d:Lbwz;
      intermediary field_28404 Lnet/minecraft/class_1391;field_28404:Lnet/minecraft/class_4051;
      named predicate Lnet/minecraft/entity/ai/goal/TemptGoal;predicate:Lnet/minecraft/entity/ai/TargetPredicate;
    • mob

      protected final PathAwareEntity mob
      Mappings:
      Namespace Name Mixin selector
      official a Lbup;a:Lbmu;
      intermediary field_6616 Lnet/minecraft/class_1391;field_6616:Lnet/minecraft/class_1314;
      named mob Lnet/minecraft/entity/ai/goal/TemptGoal;mob:Lnet/minecraft/entity/mob/PathAwareEntity;
    • speed

      private final double speed
      Mappings:
      Namespace Name Mixin selector
      official e Lbup;e:D
      intermediary field_6615 Lnet/minecraft/class_1391;field_6615:D
      named speed Lnet/minecraft/entity/ai/goal/TemptGoal;speed:D
    • lastPlayerX

      private double lastPlayerX
      Mappings:
      Namespace Name Mixin selector
      official f Lbup;f:D
      intermediary field_6614 Lnet/minecraft/class_1391;field_6614:D
      named lastPlayerX Lnet/minecraft/entity/ai/goal/TemptGoal;lastPlayerX:D
    • lastPlayerY

      private double lastPlayerY
      Mappings:
      Namespace Name Mixin selector
      official g Lbup;g:D
      intermediary field_6611 Lnet/minecraft/class_1391;field_6611:D
      named lastPlayerY Lnet/minecraft/entity/ai/goal/TemptGoal;lastPlayerY:D
    • lastPlayerZ

      private double lastPlayerZ
      Mappings:
      Namespace Name Mixin selector
      official h Lbup;h:D
      intermediary field_6621 Lnet/minecraft/class_1391;field_6621:D
      named lastPlayerZ Lnet/minecraft/entity/ai/goal/TemptGoal;lastPlayerZ:D
    • lastPlayerPitch

      private double lastPlayerPitch
      Mappings:
      Namespace Name Mixin selector
      official i Lbup;i:D
      intermediary field_6619 Lnet/minecraft/class_1391;field_6619:D
      named lastPlayerPitch Lnet/minecraft/entity/ai/goal/TemptGoal;lastPlayerPitch:D
    • lastPlayerYaw

      private double lastPlayerYaw
      Mappings:
      Namespace Name Mixin selector
      official j Lbup;j:D
      intermediary field_6618 Lnet/minecraft/class_1391;field_6618:D
      named lastPlayerYaw Lnet/minecraft/entity/ai/goal/TemptGoal;lastPlayerYaw:D
    • closestPlayer

      @Nullable protected @Nullable PlayerEntity closestPlayer
      Mappings:
      Namespace Name Mixin selector
      official b Lbup;b:Lcfi;
      intermediary field_6617 Lnet/minecraft/class_1391;field_6617:Lnet/minecraft/class_1657;
      named closestPlayer Lnet/minecraft/entity/ai/goal/TemptGoal;closestPlayer:Lnet/minecraft/entity/player/PlayerEntity;
    • cooldown

      private int cooldown
      Mappings:
      Namespace Name Mixin selector
      official k Lbup;k:I
      intermediary field_6612 Lnet/minecraft/class_1391;field_6612:I
      named cooldown Lnet/minecraft/entity/ai/goal/TemptGoal;cooldown:I
    • active

      private boolean active
      Mappings:
      Namespace Name Mixin selector
      official l Lbup;l:Z
      intermediary field_6613 Lnet/minecraft/class_1391;field_6613:Z
      named active Lnet/minecraft/entity/ai/goal/TemptGoal;active:Z
    • food

      private final Ingredient food
      Mappings:
      Namespace Name Mixin selector
      official m Lbup;m:Lcpz;
      intermediary field_6622 Lnet/minecraft/class_1391;field_6622:Lnet/minecraft/class_1856;
      named food Lnet/minecraft/entity/ai/goal/TemptGoal;food:Lnet/minecraft/recipe/Ingredient;
    • canBeScared

      private final boolean canBeScared
      Mappings:
      Namespace Name Mixin selector
      official n Lbup;n:Z
      intermediary field_6620 Lnet/minecraft/class_1391;field_6620:Z
      named canBeScared Lnet/minecraft/entity/ai/goal/TemptGoal;canBeScared:Z
  • Constructor Details

    • TemptGoal

      public TemptGoal(PathAwareEntity entity, double speed, Ingredient food, boolean canBeScared)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbup;<init>(Lbmu;DLcpz;Z)V
      intermediary <init> Lnet/minecraft/class_1391;<init>(Lnet/minecraft/class_1314;DLnet/minecraft/class_1856;Z)V
      named <init> Lnet/minecraft/entity/ai/goal/TemptGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;DLnet/minecraft/recipe/Ingredient;Z)V
  • Method Details

    • canStart

      public boolean canStart()
      Specified by:
      canStart in class Goal
      Mappings:
      Namespace Name Mixin selector
      official a Lbth;a()Z
      intermediary method_6264 Lnet/minecraft/class_1352;method_6264()Z
      named canStart Lnet/minecraft/entity/ai/goal/Goal;canStart()Z
    • isTemptedBy

      private boolean isTemptedBy(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbup;a(Lbml;)Z
      intermediary method_6312 Lnet/minecraft/class_1391;method_6312(Lnet/minecraft/class_1309;)Z
      named isTemptedBy Lnet/minecraft/entity/ai/goal/TemptGoal;isTemptedBy(Lnet/minecraft/entity/LivingEntity;)Z
    • shouldContinue

      public boolean shouldContinue()
      Overrides:
      shouldContinue in class Goal
      Mappings:
      Namespace Name Mixin selector
      official b Lbth;b()Z
      intermediary method_6266 Lnet/minecraft/class_1352;method_6266()Z
      named shouldContinue Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
    • canBeScared

      protected boolean canBeScared()
      Mappings:
      Namespace Name Mixin selector
      official h Lbup;h()Z
      intermediary method_16081 Lnet/minecraft/class_1391;method_16081()Z
      named canBeScared Lnet/minecraft/entity/ai/goal/TemptGoal;canBeScared()Z
    • start

      public void start()
      Overrides:
      start in class Goal
      Mappings:
      Namespace Name Mixin selector
      official c Lbth;c()V
      intermediary method_6269 Lnet/minecraft/class_1352;method_6269()V
      named start Lnet/minecraft/entity/ai/goal/Goal;start()V
    • stop

      public void stop()
      Overrides:
      stop in class Goal
      Mappings:
      Namespace Name Mixin selector
      official d Lbth;d()V
      intermediary method_6270 Lnet/minecraft/class_1352;method_6270()V
      named stop Lnet/minecraft/entity/ai/goal/Goal;stop()V
    • tick

      public void tick()
      Overrides:
      tick in class Goal
      Mappings:
      Namespace Name Mixin selector
      official e Lbth;e()V
      intermediary method_6268 Lnet/minecraft/class_1352;method_6268()V
      named tick Lnet/minecraft/entity/ai/goal/Goal;tick()V
    • isActive

      public boolean isActive()
      Mappings:
      Namespace Name Mixin selector
      official i Lbup;i()Z
      intermediary method_6313 Lnet/minecraft/class_1391;method_6313()Z
      named isActive Lnet/minecraft/entity/ai/goal/TemptGoal;isActive()Z