接口 JukeboxPlayableComponent
- 所有超级接口:
ConfigurationSerializable
表示一个可以插入唱片机的组件。
-
方法概要
修饰符和类型方法说明getSong()获取分配给此组件的歌曲。获取分配给此组件的歌曲的键。voidsetSong(@NotNull JukeboxSong song) 设置分配给此组件的歌曲。voidsetSongKey(@NotNull NamespacedKey song) 设置分配给此组件的歌曲的键。从接口继承的方法 org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
-
方法详细资料
-
getSong
获取分配给此组件的歌曲。原文:Gets the song assigned to this component.
- 返回:
- 歌曲,如果服务器上不存在该歌曲则返回null
-
getSongKey
获取分配给此组件的歌曲的键。原文:Gets the key of the song assigned to this component.
- 返回:
- 歌曲键
-
setSong
设置分配给此组件的歌曲。原文:Sets the song assigned to this component.
- 参数:
song- 歌曲
-
setSongKey
设置分配给此组件的歌曲的键。原文:Sets the key of the song assigned to this component.
- 参数:
song- 歌曲键
-