Class HoldInHandsGoal<T extends MobEntity>

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.HoldInHandsGoal<T>

public class HoldInHandsGoal<T extends MobEntity> extends Goal
Mappings:
Namespace Name
named net/minecraft/entity/ai/goal/HoldInHandsGoal
intermediary net/minecraft/class_3993
official ceo
  • Field Details

    • actor

      private final T extends MobEntity actor
      Mappings:
      Namespace Name Mixin selector
      named actor Lnet/minecraft/entity/ai/goal/HoldInHandsGoal;actor:Lnet/minecraft/entity/mob/MobEntity;
      intermediary field_17755 Lnet/minecraft/class_3993;field_17755:Lnet/minecraft/class_1308;
      official a Lceo;a:Lbwh;
    • item

      private final ItemStack item
      Mappings:
      Namespace Name Mixin selector
      named item Lnet/minecraft/entity/ai/goal/HoldInHandsGoal;item:Lnet/minecraft/item/ItemStack;
      intermediary field_17756 Lnet/minecraft/class_3993;field_17756:Lnet/minecraft/class_1799;
      official b Lceo;b:Lcxo;
    • condition

      private final Predicate<? super T extends MobEntity> condition
      Mappings:
      Namespace Name Mixin selector
      named condition Lnet/minecraft/entity/ai/goal/HoldInHandsGoal;condition:Ljava/util/function/Predicate;
      intermediary field_17757 Lnet/minecraft/class_3993;field_17757:Ljava/util/function/Predicate;
      official c Lceo;c:Ljava/util/function/Predicate;
    • sound

      @Nullable private final @Nullable SoundEvent sound
      Mappings:
      Namespace Name Mixin selector
      named sound Lnet/minecraft/entity/ai/goal/HoldInHandsGoal;sound:Lnet/minecraft/sound/SoundEvent;
      intermediary field_18280 Lnet/minecraft/class_3993;field_18280:Lnet/minecraft/class_3414;
      official d Lceo;d:Laxe;
  • Constructor Details

    • HoldInHandsGoal

      public HoldInHandsGoal(T actor, ItemStack item, @Nullable @Nullable SoundEvent sound, Predicate<? super T> condition)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/ai/goal/HoldInHandsGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/sound/SoundEvent;Ljava/util/function/Predicate;)V
      intermediary <init> Lnet/minecraft/class_3993;<init>(Lnet/minecraft/class_1308;Lnet/minecraft/class_1799;Lnet/minecraft/class_3414;Ljava/util/function/Predicate;)V
      official <init> Lceo;<init>(Lbwh;Lcxo;Laxe;Ljava/util/function/Predicate;)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 b Lcdd;b()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 c Lcdd;c()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 d Lcdd;d()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 e Lcdd;e()V