net.minecraft.component.type

public record InstrumentComponent

implements TooltipAppender

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

Field summary

Modifier and TypeField
private final RegistryEntry<Instrument>
instrument
comp_3598
instrument
public static final com.mojang.serialization.Codec<InstrumentComponent>
CODEC
field_56311
CODEC
public static final PacketCodec<RegistryByteBuf, InstrumentComponent>
STREAM_CODEC
field_56312
PACKET_CODEC

Constructor summary

ModifierConstructor
public (RegistryEntry<Instrument> instrument)

Method summary

Modifier and TypeMethod
public void
addToTooltip(Item$TooltipContext context, Consumer<Component> consumer, TooltipFlag flag, DataComponentGetter components)
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 RegistryEntry<Instrument>
instrument()
comp_3598()
instrument()