Package org.bukkit

Interface JukeboxSong

All Superinterfaces:
Keyed, Keyed, Translatable

@NullMarked public interface JukeboxSong extends Keyed, Translatable
Represents a song which may play in a Jukebox.
  • Field Details

  • Method Details

    • getTranslationKey

      @Deprecated(forRemoval=true) String getTranslationKey()
      Deprecated, for removal: This API element is subject to removal in a future version.
      this method assumes that jukebox song description will always be a translatable component which is not guaranteed.
      Description copied from interface: Translatable
      Get the translation key, suitable for use in a translation component.
      Specified by:
      getTranslationKey in interface Translatable
      Returns:
      the translation key
    • getSound

      Sound getSound()
      Gets the sound for this song.
      Returns:
      the sound
    • getDescription

      Component getDescription()
      Gets the description for this song.
      Returns:
      the description
    • getLengthInSeconds

      float getLengthInSeconds()
      Gets the length in seconds for this song.
      Returns:
      the length in seconds
    • getComparatorOutput

      int getComparatorOutput()
      Gets the comparator output for this song.
      Returns:
      the comparator output