接口 JukeboxPlayableComponent
- 所有超级接口:
ConfigurationSerializable
Represents a component which can be inserted into a jukebox.
-
方法概要
修饰符和类型方法说明getSong()
Gets the song assigned to this component.Gets the key of the song assigned to this component.boolean
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
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
Sets the song assigned to this component.- 参数:
song
- the song
-
setSongKey
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
-