net.minecraft.world.item

public record JukeboxPlayable

implements TooltipProvider

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

Field summary

Modifier and TypeField
private final EitherHolder<JukeboxSong>
c
song
comp_2833
song
public static final com.mojang.serialization.Codec<JukeboxPlayable>
a
CODEC
field_52025
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, JukeboxPlayable>
b
STREAM_CODEC
field_52026
PACKET_CODEC

Constructor summary

ModifierConstructor
public (EitherHolder<JukeboxSong> 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 static InteractionResult
a(dip arg0, iu arg1, cys arg2, cqs arg3)
tryInsertIntoJukebox(Level arg0, BlockPos arg1, ItemStack arg2, Player arg3)
method_60747(class_1937 arg0, class_2338 arg1, class_1799 arg2, class_1657 arg3)
tryPlayStack(World world, BlockPos pos, ItemStack stack, PlayerEntity player)
public EitherHolder<JukeboxSong>
a()
song()
comp_2833()
song()