net.minecraft.world.item

public record JukeboxPlayable

implements TooltipProvider

cuu
net.minecraft.world.item.JukeboxPlayable
net.minecraft.class_9792
net.minecraft.component.type.JukeboxPlayableComponent
net.minecraft.src.C_336595_
net.minecraft.world.item.JukeboxPlayable

Field summary

Modifier and TypeField
private final EitherHolder<JukeboxSong>
c
song
comp_2833
song
f_337112_
private final boolean
d
showInTooltip
comp_2834
showInTooltip
f_336721_
public static final com.mojang.serialization.Codec<JukeboxPlayable>
a
CODEC
field_52025
CODEC
f_337315_
public static final StreamCodec<RegistryFriendlyByteBuf, JukeboxPlayable>
b
STREAM_CODEC
field_52026
PACKET_CODEC
f_337415_

Constructor summary

ModifierConstructor
public (EitherHolder<JukeboxSong> showInTooltip, boolean arg1)

Method summary

Modifier and TypeMethod
public void
a(cul$b arg0, Consumer<wz> arg1, cwm 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)
m_319025_(C_1381_$C_313602_ p_344027_, Consumer<C_4996_> p_344530_, C_1431_ arg2)
public JukeboxPlayable
a(boolean arg0)
withTooltip(boolean arg0)
method_60749(boolean arg0)
withShowInTooltip(boolean showInTooltip)
m_340314_(boolean arg0)
public static ItemInteractionResult
a(dcw arg0, jd arg1, cuq arg2, cmx 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)
m_339307_(C_1596_ p_342790_, C_4675_ p_344904_, C_1391_ p_345065_, C_1141_ p_342036_)
public EitherHolder<JukeboxSong>
a()
song()
comp_2833()
song()
f_337112_()
public boolean
b()
showInTooltip()
comp_2834()
showInTooltip()
f_336721_()