Modifier and Type | Field and Description |
---|---|
private T |
field_220766_a |
private ItemStack |
field_220767_b |
private java.util.function.Predicate<? super T> |
field_220768_c |
private SoundEvent |
field_220769_d |
Constructor and Description |
---|
UseItemGoal(T p_i50319_1_,
ItemStack p_i50319_2_,
SoundEvent p_i50319_3_,
java.util.function.Predicate<? super T> p_i50319_4_) |
Modifier and Type | Method and Description |
---|---|
void |
resetTask() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
getMutexFlags, isPreemptible, setMutexFlags, tick, toString
private final ItemStack field_220767_b
private final java.util.function.Predicate<? super T extends MobEntity> field_220768_c
private final SoundEvent field_220769_d
public UseItemGoal(T p_i50319_1_, ItemStack p_i50319_2_, @Nullable SoundEvent p_i50319_3_, java.util.function.Predicate<? super T> p_i50319_4_)
public boolean shouldExecute()
shouldExecute
in class Goal
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class Goal
public void startExecuting()
startExecuting
in class Goal