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>
canUseSelector
private SoundEvent
finishUsingSound
private ItemStack
item
private T
mob
-
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 boolean
canContinueToUse()
boolean
canUse()
void
start()
void
stop()
-
-
-
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_)
-
-