接口 JukeboxPlayableComponent

所有超级接口:
ConfigurationSerializable

@Experimental public interface JukeboxPlayableComponent extends ConfigurationSerializable
表示一个可以插入唱片机的组件。
  • 方法详细资料

    • getSong

      获取分配给此组件的歌曲。

      原文:Gets the song assigned to this component.

      返回:
      歌曲,如果服务器上不存在该歌曲则返回null
    • getSongKey

      获取分配给此组件的歌曲的键。

      原文:Gets the key of the song assigned to this component.

      返回:
      歌曲键
    • setSong

      void setSong(@NotNull @NotNull JukeboxSong song)
      设置分配给此组件的歌曲。

      原文:Sets the song assigned to this component.

      参数:
      song - 歌曲
    • setSongKey

      void setSongKey(@NotNull @NotNull NamespacedKey song)
      设置分配给此组件的歌曲的键。

      原文:Sets the key of the song assigned to this component.

      参数:
      song - 歌曲键