Interface JukeboxSongRegistryEntry
- All Known Subinterfaces:
JukeboxSongRegistryEntry.Builder
@NonExtendable
public interface JukeboxSongRegistryEntry
A data-centric version-specific registry entry for the
JukeboxSong type.- Since:
- 1.21.6
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA mutable builder for theJukeboxSongRegistryEntryplugins may change in applicable registry events. -
Method Summary
Modifier and TypeMethodDescription@Range(from=0L,to=15L) intGets the comparator output for this song.net.kyori.adventure.text.ComponentGets the description for this song.@Positive floatGets the length in seconds for this song.Gets the sound event for this song.
-
Method Details
-
soundEvent
Gets the sound event for this song.- Returns:
- the sound event
- Since:
- 1.21.6
-
description
@Contract(pure=true) net.kyori.adventure.text.Component description()Gets the description for this song.- Returns:
- the description
- Since:
- 1.21.6
-
lengthInSeconds
@Contract(pure=true) @Positive float lengthInSeconds()Gets the length in seconds for this song.- Returns:
- the length in seconds
- Since:
- 1.21.6
-
comparatorOutput
@Contract(pure=true) @Range(from=0L,to=15L) int comparatorOutput()Gets the comparator output for this song.- Returns:
- the comparator output
- Since:
- 1.21.6
-