net.minecraft.world.item

public record JukeboxSong

cxv
net.minecraft.world.item.JukeboxSong
net.minecraft.class_9793
net.minecraft.block.jukebox.JukeboxSong
net.minecraft.world.item.JukeboxSong

Field summary

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

Constructor summary

ModifierConstructor
public (Holder<SoundEvent> arg0, Component arg1, float arg2, int arg3)

Method summary

Modifier and TypeMethod
public int
a()
lengthInTicks()
method_60750()
getLengthInTicks()
public boolean
a(long arg0)
hasFinished(long arg0)
method_60751(long arg0)
shouldStopPlaying(long ticksSinceSongStarted)
public static Optional<Holder<JukeboxSong>>
a(js$a arg0, cxp arg1)
fromStack(HolderLookup$Provider arg0, ItemStack arg1)
method_60753(class_7225$class_7874 arg0, class_1799 arg1)
getSongEntryFromStack(RegistryWrapper$WrapperLookup registries, ItemStack stack)
public Holder<SoundEvent>
b()
soundEvent()
comp_2835()
soundEvent()
public Component
c()
description()
comp_2836()
description()
public float
d()
lengthInSeconds()
comp_2837()
lengthInSeconds()
public int
e()
comparatorOutput()
comp_2838()
comparatorOutput()