Package net.minecraft.entity.ai.goal
Class HoldInHandsGoal<T extends MobEntity>
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.HoldInHandsGoal<T>
- Mappings:
Namespace Name official bog
intermediary net/minecraft/class_3993
named net/minecraft/entity/ai/goal/HoldInHandsGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
-
Constructor Summary
ConstructorDescriptionHoldInHandsGoal
(T actor, ItemStack item, @Nullable SoundEvent sound, Predicate<? super T> condition) -
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, getTickCount, setControls, shouldRunEveryTick, tick, toGoalTicks, toString
-
Field Details
-
actor
- Mappings:
Namespace Name Mixin selector official a
Lbog;a:Lbgb;
intermediary field_17755
Lnet/minecraft/class_3993;field_17755:Lnet/minecraft/class_1308;
named actor
Lnet/minecraft/entity/ai/goal/HoldInHandsGoal;actor:Lnet/minecraft/entity/mob/MobEntity;
-
item
- Mappings:
Namespace Name Mixin selector official b
Lbog;b:Lcfz;
intermediary field_17756
Lnet/minecraft/class_3993;field_17756:Lnet/minecraft/class_1799;
named item
Lnet/minecraft/entity/ai/goal/HoldInHandsGoal;item:Lnet/minecraft/item/ItemStack;
-
condition
- Mappings:
Namespace Name Mixin selector official c
Lbog;c:Ljava/util/function/Predicate;
intermediary field_17757
Lnet/minecraft/class_3993;field_17757:Ljava/util/function/Predicate;
named condition
Lnet/minecraft/entity/ai/goal/HoldInHandsGoal;condition:Ljava/util/function/Predicate;
-
sound
- Mappings:
Namespace Name Mixin selector official d
Lbog;d:Lamg;
intermediary field_18280
Lnet/minecraft/class_3993;field_18280:Lnet/minecraft/class_3414;
named sound
Lnet/minecraft/entity/ai/goal/HoldInHandsGoal;sound:Lnet/minecraft/sound/SoundEvent;
-
-
Constructor Details
-
HoldInHandsGoal
public HoldInHandsGoal(T actor, ItemStack item, @Nullable @Nullable SoundEvent sound, Predicate<? super T> condition) - Mappings:
Namespace Name Mixin selector official <init>
Lbog;<init>(Lbgb;Lcfz;Lamg;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
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
-
-
Method Details
-
canStart
public boolean canStart() -
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classGoal
- Mappings:
Namespace Name Mixin selector official b
Lbmv;b()Z
intermediary method_6266
Lnet/minecraft/class_1352;method_6266()Z
named shouldContinue
Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
-
start
public void start() -
stop
public void stop()
-