程序包 org.bukkit.inventory.meta.components

# 接口 JukeboxPlayableComponent

所有超级接口:
  `ConfigurationSerializable`

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

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@Nullable JukeboxSong`
  `getSong()`
  Gets the song assigned to this component.
  `@NotNull NamespacedKey`
  `getSongKey()`
  Gets the key of the song assigned to this component.
  `boolean`
  `isShowInTooltip()`
  Gets if the song will show in the item tooltip.
  `void`
  `setShowInTooltip(boolean show)`
  Sets if the song will show in the item tooltip.
  `void`
  `setSong(@NotNull JukeboxSong song)`
  Sets the song assigned to this component.
  `void`
  `setSongKey(@NotNull NamespacedKey song)`
  Sets the key of the song assigned to this component.

  ### 从接口继承的方法 org.bukkit.configuration.serialization.ConfigurationSerializable

  `serialize`

- ## 方法详细资料

  - ### getSong

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

  - ### getSongKey

    @NotNull @NotNull NamespacedKey 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