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
named net/minecraft/entity/ai/goal/TemptGoal
intermediary net/minecraft/class_1391
official cbi
  • Field Details

    • TEMPTING_ENTITY_PREDICATE

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

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

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

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

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

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

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

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

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

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

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

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

      private final Predicate<ItemStack> foodPredicate
      Mappings:
      Namespace Name Mixin selector
      named foodPredicate Lnet/minecraft/entity/ai/goal/TemptGoal;foodPredicate:Ljava/util/function/Predicate;
      intermediary field_6622 Lnet/minecraft/class_1391;field_6622:Ljava/util/function/Predicate;
      official m Lcbi;m:Ljava/util/function/Predicate;
    • canBeScared

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

    • TemptGoal

      public TemptGoal(PathAwareEntity entity, double speed, Predicate<ItemStack> foodPredicate, boolean canBeScared)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/ai/goal/TemptGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;DLjava/util/function/Predicate;Z)V
      intermediary <init> Lnet/minecraft/class_1391;<init>(Lnet/minecraft/class_1314;DLjava/util/function/Predicate;Z)V
      official <init> Lcbi;<init>(Lbtl;DLjava/util/function/Predicate;Z)V
  • Method Details

    • canStart

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

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

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

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

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

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

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

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