net.minecraft.world.item

public class InstrumentItem

extends Item

All mapped superinterfaces:

ItemLike

car
net.minecraft.world.item.InstrumentItem
net.minecraft.class_7430
net.minecraft.unmapped.C_tsdodpup
net.minecraft.item.GoatHornItem
net.minecraft.item.InstrumentItem
net.minecraft.src.C_213080_
net.minecraft.world.item.InstrumentItem

Field summary

Modifier and TypeField
private static final String
a
TAG_INSTRUMENT
field_39052
f_gidxrzau
INSTRUMENT_KEY
NBT_KEY
f_220096_
private TagKey<Instrument>
b
instruments
field_39123
f_izlbtrfx
instrumentTag
validInstruments
f_220097_

Constructor summary

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

Method summary

Modifier and TypeMethod
public void
a(cax arg0, cgx arg1, List<rq> arg2, ccl arg3)
appendHoverText(ItemStack arg0, Level arg1, List<Component> arg2, TooltipFlag arg3)
method_7851(class_1799 arg0, class_1937 arg1, List<class_2561> arg2, class_1836 arg3)
m_vlpdhsgt(C_sddaxwyk arg0, C_cdctfzbn arg1, List<C_rdaqiwdt> arg2, C_taebrtdw arg3)
appendTooltip(ItemStack arg0, World arg1, List<Text> arg2, TooltipContext arg3)
appendTooltip(ItemStack arg0, World arg1, List<Text> arg2, TooltipContext arg3)
m_7373_(C_1391_ p_220116_, C_1596_ p_220117_, List<C_4996_> p_220118_, C_1431_ arg3)
public static ItemStack
a(cat arg0, hc<caq> arg1)
create(Item arg0, Holder<Instrument> arg1)
method_43558(class_1792 arg0, class_6880<class_7444> arg1)
m_wjvjcuvz(C_vorddnax arg0, C_cjzoxshv<C_vywrdemv> arg1)
getStackForInstrument(Item item, RegistryEntry<Instrument> instrument)
addInstrument(Item item, Holder<Instrument> instrument)
m_220107_(C_1381_ p_220108_, C_203228_<C_213079_> p_220109_)
public static void
a(cax arg0, akz<caq> arg1, amn arg2)
setRandom(ItemStack arg0, TagKey<Instrument> arg1, RandomSource arg2)
method_43562(class_1799 arg0, class_6862<class_7444> arg1, class_5819 arg2)
m_ymwkkmzj(C_sddaxwyk arg0, C_ednuhnnn<C_vywrdemv> arg1, C_rlomrsco arg2)
setRandomInstrumentFromTag(ItemStack stack, TagKey<Instrument> instrumentTag, Random random)
addInstrument(ItemStack stack, TagKey<Instrument> tag, RandomGenerator random)
m_220110_(C_1391_ p_220111_, C_203208_<C_213079_> p_220112_, C_212974_ p_220113_)
private static void
a(cax arg0, hc<caq> arg1)
setSoundVariantId(ItemStack arg0, Holder<Instrument> arg1)
method_43561(class_1799 arg0, class_6880<class_7444> arg1)
m_bhlvdehl(C_sddaxwyk arg0, C_cjzoxshv<C_vywrdemv> arg1)
setInstrument(ItemStack stack, RegistryEntry<Instrument> instrument)
addInstrument(ItemStack stack, Holder<Instrument> holder)
m_220119_(C_1391_ p_220120_, C_203228_<C_213079_> p_220121_)
public void
a(bzj arg0, hi<cax> arg1)
fillItemCategory(CreativeModeTab arg0, NonNullList<ItemStack> arg1)
method_7850(class_1761 arg0, class_2371<class_1799> arg1)
m_vsywafjh(C_lnokcayd arg0, C_rnrfftze<C_sddaxwyk> arg1)
appendStacks(ItemGroup arg0, DefaultedList<ItemStack> arg1)
appendStacks(ItemGroup arg0, DefaultedList<ItemStack> arg1)
m_6787_(C_1336_ p_220106_, C_4702_<C_1391_> arg1)
public InteractionResultHolder<ItemStack>
a(cgx arg0, buc arg1, bai arg2)
use(Level arg0, Player arg1, InteractionHand arg2)
method_7836(class_1937 arg0, class_1657 arg1, class_1268 arg2)
m_znsmbimv(C_cdctfzbn arg0, C_jzrpycqo arg1, C_laxmzoqs arg2)
use(World arg0, PlayerEntity arg1, Hand arg2)
use(World arg0, PlayerEntity arg1, Hand arg2)
m_7203_(C_1596_ p_220124_, C_1141_ p_220125_, C_470_ arg2)
public int
b(cax arg0)
getUseDuration(ItemStack arg0)
method_7881(class_1799 arg0)
m_hwznhtnf(C_sddaxwyk arg0)
getMaxUseTime(ItemStack arg0)
getMaxUseTime(ItemStack arg0)
m_8105_(C_1391_ arg0)
private Optional<Holder<Instrument>>
d(cax arg0)
getInstrument(ItemStack arg0)
method_43711(class_1799 arg0)
m_mgmlnwxr(C_sddaxwyk arg0)
getInstrument(ItemStack stack)
getInstrument(ItemStack stack)
m_220134_(C_1391_ arg0)
public UseAnim
c(cax arg0)
getUseAnimation(ItemStack arg0)
method_7853(class_1799 arg0)
m_yvddkccr(C_sddaxwyk arg0)
getUseAction(ItemStack arg0)
getUseAction(ItemStack arg0)
m_6164_(C_1391_ arg0)
private static void
a(cgx arg0, buc arg1, caq arg2)
play(Level arg0, Player arg1, Instrument arg2)
method_43563(class_1937 arg0, class_1657 arg1, class_7444 arg2)
m_rafushjt(C_cdctfzbn arg0, C_jzrpycqo arg1, C_vywrdemv arg2)
playSound(World world, PlayerEntity player, Instrument instrument)
playSound(World world, PlayerEntity player, Instrument instrument)
m_220126_(C_1596_ p_220127_, C_1141_ p_220128_, C_213079_ p_220129_)