net.minecraft.component.type

public record JukeboxPlayableComponent

implements TooltipAppender

net.minecraft.world.item.JukeboxPlayable
net.minecraft.class_9792
net.minecraft.component.type.JukeboxPlayableComponent

Field summary

Modifier and TypeField
private final RegistryEntry<JukeboxSong>
song
comp_1_70
song
public static final com.mojang.serialization.Codec<JukeboxPlayableComponent>
CODEC
field_52025
CODEC
public static final PacketCodec<RegistryByteBuf, JukeboxPlayableComponent>
STREAM_CODEC
field_52026
PACKET_CODEC

Constructor summary

ModifierConstructor
public (RegistryEntry<JukeboxSong> song)

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 static ActionResult
tryInsertIntoJukebox(Level level, BlockPos pos, ItemStack toInsert, Player player)
method_60747(class_1937 arg0, class_2338 arg1, class_1799 arg2, class_1657 arg3)
tryPlayStack(World world, BlockPos pos, ItemStack stack, PlayerEntity player)
public RegistryEntry<JukeboxSong>
song()
comp_1_70()
song()