net.minecraft.world.item.component

public record InstrumentComponent

implements TooltipProvider

dbi
net.minecraft.world.item.component.InstrumentComponent
net.minecraft.class_10710
net.minecraft.class_10710

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public void
a(cyo$b arg0, Consumer<ww> arg1, dah 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)
appendTooltip(Item$TooltipContext arg0, Consumer<Text> arg1, TooltipType arg2, ComponentsAccess arg3)
public Optional<Holder<Instrument>>
a(jg$a arg0)
unwrap(HolderLookup$Provider arg0)
method_67211(class_7225$class_7874 arg0)
method_67211(RegistryWrapper$WrapperLookup arg0)
public EitherHolder<Instrument>
a()
instrument()
comp_3598()
instrument()