net.minecraft.entity.ai.goal

public class HoldInHandsGoal<T extends MobEntity>

extends Goal

net.minecraft.world.entity.ai.goal.UseItemGoal
net.minecraft.class_3993
net.minecraft.entity.ai.goal.HoldInHandsGoal

Field summary

Modifier and TypeField
private final T
mob
field_17755
actor
private final ItemStack
item
field_17756
item
private final Predicate<? super T>
canUseSelector
field_17757
condition
private final SoundEvent
finishUsingSound
field_18280
sound

Constructor summary

ModifierConstructor
public (T actor, ItemStack item, SoundEvent sound, Predicate<? super T> condition)

Method summary

Modifier and TypeMethod
public boolean
canUse()
method_6264()
canStart()
public boolean
canContinueToUse()
method_6266()
shouldContinue()
public void
start()
method_6269()
start()
public void
stop()
method_6270()
stop()