net.minecraft.world.item

public class InstrumentItem

extends Item

All mapped superinterfaces:

FeatureElement, ItemLike

cxj
net.minecraft.world.item.InstrumentItem
net.minecraft.class_7430
net.minecraft.item.GoatHornItem
net.minecraft.world.item.InstrumentItem

Field summary

Modifier and TypeField
private final TagKey<Instrument>
a
instruments
field_39123
instrumentTag

Constructor summary

ModifierConstructor
public (TagKey<Instrument> instrumentTag, Item$Properties settings)

Method summary

Modifier and TypeMethod
public void
a(cxp arg0, cxl$b arg1, List<xv> arg2, czh arg3)
appendHoverText(ItemStack arg0, Item$TooltipContext arg1, List<Component> arg2, TooltipFlag arg3)
method_7851(class_1799 arg0, class_1792$class_9635 arg1, List<class_2561> arg2, class_1836 arg3)
appendTooltip(ItemStack arg0, Item$TooltipContext arg1, List<Text> arg2, TooltipType arg3)
public static ItemStack
a(cxl arg0, jq<cxi> arg1)
create(Item arg0, Holder<Instrument> arg1)
method_43558(class_1792 arg0, class_6880<class_7444> arg1)
getStackForInstrument(Item item, RegistryEntry<Instrument> instrument)
public InteractionResult
a(dhi arg0, cpx arg1, bti arg2)
use(Level arg0, Player arg1, InteractionHand arg2)
method_7836(class_1937 arg0, class_1657 arg1, class_1268 arg2)
use(World arg0, PlayerEntity arg1, Hand arg2)
public int
a(cxp arg0, bwg arg1)
getUseDuration(ItemStack arg0, LivingEntity arg1)
method_7881(class_1799 arg0, class_1309 arg1)
getMaxUseTime(ItemStack arg0, LivingEntity arg1)
private Optional<Holder<Instrument>>
a(cxp arg0, js$a arg1)
getInstrument(ItemStack arg0, HolderLookup$Provider arg1)
method_43711(class_1799 arg0, class_7225$class_7874 arg1)
getInstrument(ItemStack stack, RegistryWrapper$WrapperLookup registries)
public ItemUseAnimation
b(cxp arg0)
getUseAnimation(ItemStack arg0)
method_7853(class_1799 arg0)
getUseAction(ItemStack arg0)
private static void
a(dhi arg0, cpx arg1, cxi arg2)
play(Level arg0, Player arg1, Instrument arg2)
method_43563(class_1937 arg0, class_1657 arg1, class_7444 arg2)
playSound(World world, PlayerEntity player, Instrument instrument)