net.minecraft.world.item

public record JukeboxPlayable

implements TooltipProvider

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

Field summary

Modifier and TypeField
private final EitherHolder<JukeboxSong>
c
song
comp_2833
song
private final boolean
d
showInTooltip
comp_2834
showInTooltip
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, boolean arg1)

Method summary

Modifier and TypeMethod
public void
a(cxl$b arg0, Consumer<xv> arg1, czh arg2)
addToTooltip(Item$TooltipContext arg0, Consumer<Component> arg1, TooltipFlag arg2)
method_57409(class_1792$class_9635 arg0, Consumer<class_2561> arg1, class_1836 arg2)
appendTooltip(Item$TooltipContext arg0, Consumer<Text> arg1, TooltipType arg2)
public JukeboxPlayable
a(boolean arg0)
withTooltip(boolean arg0)
method_60749(boolean arg0)
withShowInTooltip(boolean showInTooltip)
public static InteractionResult
a(dhi arg0, jh arg1, cxp arg2, cpx 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()
public boolean
b()
showInTooltip()
comp_2834()
showInTooltip()