接口 JukeboxPlayableComponent

所有超级接口:
ConfigurationSerializable

@Experimental public interface JukeboxPlayableComponent extends ConfigurationSerializable
Represents a component which can be inserted into a jukebox.
  • 方法详细资料

    • getSong

      Gets the song assigned to this component.
      返回:
      song, or null if the song does not exist on the server
    • getSongKey

      Gets the key of the song assigned to this component.
      返回:
      the song key
    • setSong

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

      void setSongKey(@NotNull @NotNull NamespacedKey song)
      Sets the key of the song assigned to this component.
      参数:
      song - the song key
    • isShowInTooltip

      boolean isShowInTooltip()
      Gets if the song will show in the item tooltip.
      返回:
      if the song will show in the tooltip
    • setShowInTooltip

      void setShowInTooltip(boolean show)
      Sets if the song will show in the item tooltip.
      参数:
      show - true if the song will show in the tooltip