Package net.minecraft.entity.ai.goal
Class UseItemGoal<T extends MobEntity>
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.UseItemGoal<T>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.Predicate<? super T>canUseSelectorprivate SoundEventfinishUsingSoundprivate ItemStackitemprivate Tmob
-
Constructor Summary
Constructors Constructor Description UseItemGoal(T p_i50319_1_, ItemStack p_i50319_2_, SoundEvent p_i50319_3_, java.util.function.Predicate<? super T> p_i50319_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanContinueToUse()booleancanUse()voidstart()voidstop()
-
-
-
Constructor Detail
-
UseItemGoal
public UseItemGoal(T p_i50319_1_, ItemStack p_i50319_2_, @Nullable SoundEvent p_i50319_3_, java.util.function.Predicate<? super T> p_i50319_4_)
-
-