net.minecraft.component.type

public record InstrumentComponent

implements TooltipAppender

dda
net.minecraft.world.item.component.InstrumentComponent
net.minecraft.class_10710
net.minecraft.component.type.InstrumentComponent
net.minecraft.unmapped.C_sfznamwf
net.minecraft.unmapped.C_sfznamwf
net.minecraft.src.C_378838_

Field summary

Modifier and TypeField
private final LazyRegistryEntryReference<Instrument>
c
instrument
comp_3598
instrument
f_yukmkvlx
instrument
f_382558_
public static final com.mojang.serialization.Codec<InstrumentComponent>
a
CODEC
field_56311
CODEC
f_rladzlog
CODEC
f_381983_
public static final PacketCodec<RegistryByteBuf, InstrumentComponent>
b
STREAM_CODEC
field_56312
PACKET_CODEC
f_ymoiamis
PACKET_CODEC
f_382022_

Constructor summary

ModifierConstructor
public (RegistryEntry<Instrument> instrument)
public (RegistryKey<Instrument> instrument)
public (LazyRegistryEntryReference<Instrument> instrument)

Method summary

Modifier and TypeMethod
public void
a(dag$b o, Consumer<xg> o, dbz o, kg arg3)
addToTooltip(Item$TooltipContext arg0, Consumer<Component> arg1, TooltipFlag arg2, DataComponentGetter arg3)
method_57409(class_1792$class_9635 arg0, Consumer<class_2561> arg1, class_1836 arg2, class_9473 arg3)
appendTooltip(Item$TooltipContext arg0, Consumer<Text> arg1, TooltipType arg2, ComponentsAccess arg3)
m_eqoeoqpg(C_vorddnax$C_rdhfmrgz arg0, Consumer<C_rdaqiwdt> arg1, C_taebrtdw arg2, C_hmcnusfu arg3)
appendToTooltip(Item$TooltipContext arg0, Consumer<Text> arg1, TooltipConfig arg2, ComponentAccess arg3)
m_319025_(C_1381_$C_313602_ p_391170_, Consumer<C_4996_> p_393894_, C_1431_ p_397888_, C_379187_ arg3)
public Optional<RegistryEntry<Instrument>>
a(ji$a arg0)
unwrap(HolderLookup$Provider arg0)
method_67211(class_7225$class_7874 arg0)
getInstrument(RegistryWrapper$WrapperLookup registries)
m_wedrdxwt(C_vtbxyypo$C_etmlgbig arg0)
m_385606_(C_213466_$C_254607_ arg0)
public LazyRegistryEntryReference<Instrument>
a()
instrument()
comp_3598()
instrument()
m_ijqdmgcj()
instrument()
f_382558_()