net.minecraft.world.item

public record JukeboxSong

cuv
net.minecraft.world.item.JukeboxSong
net.minecraft.class_9793
net.minecraft.block.jukebox.JukeboxSong
net.minecraft.src.C_336495_
net.minecraft.world.item.JukeboxSong

Field summary

Modifier and TypeField
private final Holder<SoundEvent>
e
soundEvent
comp_2835
soundEvent
f_337080_
private final Component
f
description
comp_2836
description
f_337519_
private final float
g
lengthInSeconds
comp_2837
lengthInSeconds
f_337271_
private final int
h
comparatorOutput
comp_2838
comparatorOutput
f_337038_
public static final com.mojang.serialization.Codec<JukeboxSong>
a
DIRECT_CODEC
field_52027
CODEC
f_336714_
public static final StreamCodec<RegistryFriendlyByteBuf, JukeboxSong>
b
DIRECT_STREAM_CODEC
field_52028
PACKET_CODEC
f_337568_
public static final com.mojang.serialization.Codec<Holder<JukeboxSong>>
c
CODEC
field_52029
ENTRY_CODEC
f_337351_
public static final StreamCodec<RegistryFriendlyByteBuf, Holder<JukeboxSong>>
d
STREAM_CODEC
field_52030
ENTRY_PACKET_CODEC
f_337152_
private static final int
i
SONG_END_PADDING_TICKS
field_52031
TICKS_PER_SECOND
f_337485_

Constructor summary

ModifierConstructor
public (Holder<SoundEvent> description, Component lengthInSeconds, float comparatorOutput, int arg3)

Method summary

Modifier and TypeMethod
public int
a()
lengthInTicks()
method_60750()
getLengthInTicks()
m_340338_()
public boolean
a(long arg0)
hasFinished(long arg0)
method_60751(long arg0)
shouldStopPlaying(long ticksSinceSongStarted)
m_339399_(long arg0)
public static Optional<Holder<JukeboxSong>>
a(jo$a arg0, cuq arg1)
fromStack(HolderLookup$Provider arg0, ItemStack arg1)
method_60753(class_7225$class_7874 arg0, class_1799 arg1)
getSongEntryFromStack(RegistryWrapper$WrapperLookup registryLookup, ItemStack stack)
m_340276_(C_213466_$C_254607_ p_343009_, C_1391_ p_342597_)
public Holder<SoundEvent>
b()
soundEvent()
comp_2835()
soundEvent()
f_337080_()
public Component
c()
description()
comp_2836()
description()
f_337519_()
public float
d()
lengthInSeconds()
comp_2837()
lengthInSeconds()
f_337271_()
public int
e()
comparatorOutput()
comp_2838()
comparatorOutput()
f_337038_()