net.minecraft.world.item

public record JukeboxSong

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

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public int
a()
lengthInTicks()
method_60750()
m_biupimoj()
getLengthInTicks()
m_340338_()
public boolean
a(long arg0)
hasFinished(long arg0)
method_60751(long arg0)
m_zkzqnxbf(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)
m_raygwtac(C_vtbxyypo$C_etmlgbig arg0, C_sddaxwyk arg1)
getSongEntryFromStack(RegistryWrapper$WrapperLookup registryLookup, ItemStack stack)
m_raygwtac(HolderLookup$Provider arg0, ItemStack stack)
m_340276_(C_213466_$C_254607_ p_343009_, C_1391_ p_342597_)
public Holder<SoundEvent>
b()
soundEvent()
comp_2835()
m_mftkyond()
soundEvent()
soundEvent()
f_337080_()
public Component
c()
description()
comp_2836()
m_xllnixzn()
description()
description()
f_337519_()
public float
d()
lengthInSeconds()
comp_2837()
m_bqrmmgqc()
lengthInSeconds()
lengthInSeconds()
f_337271_()
public int
e()
comparatorOutput()
comp_2838()
m_tdktnqnz()
comparatorOutput()
comparatorOutput()
f_337038_()