Interface JukeboxSongRegistryEntry

All Known Subinterfaces:
JukeboxSongRegistryEntry.Builder

@Experimental @NonExtendable public interface JukeboxSongRegistryEntry
A data-centric version-specific registry entry for the JukeboxSong type.
Since:
1.21.6
  • Method Details

    • soundEvent

      Gets the sound event for this song.
      Returns:
      the sound event
      Since:
      1.21.6
    • description

      @Contract(pure=true) 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