Interface JukeboxPlayableComponent
- All Superinterfaces:
- ConfigurationSerializable
Represents a component which can be inserted into a jukebox.
- 
Method SummaryModifier and TypeMethodDescriptiongetSong()Gets the song assigned to this component.Gets the key of the song assigned to this component.booleanGets if the song will show in the item tooltip.voidsetShowInTooltip(boolean show) Sets if the song will show in the item tooltip.voidsetSong(JukeboxSong song) Sets the song assigned to this component.voidsetSongKey(NamespacedKey song) Sets the key of the song assigned to this component.Methods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializableserialize
- 
Method Details- 
getSongGets the song assigned to this component.- Returns:
- song, or null if the song does not exist on the server
 
- 
getSongKeyGets the key of the song assigned to this component.- Returns:
- the song key
 
- 
setSongSets the song assigned to this component.- Parameters:
- song- the song
 
- 
setSongKeySets the key of the song assigned to this component.- Parameters:
- song- the song key
 
- 
isShowInTooltipboolean isShowInTooltip()Gets if the song will show in the item tooltip.- Returns:
- if the song will show in the tooltip
 
- 
setShowInTooltipvoid setShowInTooltip(boolean show) Sets if the song will show in the item tooltip.- Parameters:
- show- true if the song will show in the tooltip
 
 
-