net.minecraft.world.item.component

public record InstrumentComponent

implements TooltipProvider

dbt
net.minecraft.world.item.component.InstrumentComponent
net.minecraft.class_10710
net.minecraft.unmapped.C_sfznamwf
net.minecraft.component.type.InstrumentComponent
net.minecraft.unmapped.C_sfznamwf

Field summary

Modifier and TypeField
private final EitherHolder<Instrument>
c
instrument
comp_3598
f_yukmkvlx
instrument
instrument
public static final com.mojang.serialization.Codec<InstrumentComponent>
a
CODEC
field_56311
f_rladzlog
CODEC
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, InstrumentComponent>
b
STREAM_CODEC
field_56312
f_ymoiamis
PACKET_CODEC
PACKET_CODEC

Constructor summary

ModifierConstructor
public (Holder<Instrument> instrument)
public (ResourceKey<Instrument> instrument)
public (EitherHolder<Instrument> instrument)

Method summary

Modifier and TypeMethod
public void
a(cyz$b arg0, Consumer<wy> arg1, das arg2, ke 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)
m_eqoeoqpg(C_vorddnax$C_rdhfmrgz arg0, Consumer<C_rdaqiwdt> arg1, C_taebrtdw arg2, C_hmcnusfu arg3)
appendTooltip(Item$TooltipContext arg0, Consumer<Text> arg1, TooltipType arg2, ComponentsAccess arg3)
appendToTooltip(Item$TooltipContext arg0, Consumer<Text> arg1, TooltipConfig arg2, ke arg3)
public Optional<Holder<Instrument>>
a(jg$a arg0)
unwrap(HolderLookup$Provider arg0)
method_67211(class_7225$class_7874 arg0)
m_wedrdxwt(C_vtbxyypo$C_etmlgbig arg0)
getInstrument(RegistryWrapper$WrapperLookup registries)
public EitherHolder<Instrument>
a()
instrument()
comp_3598()
m_ijqdmgcj()
instrument()
instrument()