Interface JukeboxPlayableComponent

All Superinterfaces:
ConfigurationSerializable

@Experimental public interface JukeboxPlayableComponent extends ConfigurationSerializable
Represents a component which can be inserted into a jukebox.
  • Method Details

    • getSong

      @Nullable JukeboxSong getSong()
      Gets the song assigned to this component.
      Returns:
      song, or null if the song does not exist on the server
    • getSongKey

      @Nullable NamespacedKey getSongKey()
      Gets the key of the song assigned to this component.
      Returns:
      the song key
    • setSong

      void setSong(@NotNull JukeboxSong song)
      Sets the song assigned to this component.
      Parameters:
      song - the song
    • setSongKey

      void setSongKey(@NotNull NamespacedKey song)
      Sets the key of the song assigned to this component.
      Parameters:
      song - the song key