Package org.bukkit
Interface JukeboxSong
- All Superinterfaces:
Keyed,Keyed,Translatable
Represents a song which may play in a Jukebox.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JukeboxSongstatic final JukeboxSongstatic final JukeboxSongstatic final JukeboxSongstatic final JukeboxSongstatic final JukeboxSongstatic final JukeboxSongstatic final JukeboxSongstatic final JukeboxSongstatic final JukeboxSongstatic final JukeboxSongstatic final JukeboxSongstatic final JukeboxSongstatic final JukeboxSongstatic final JukeboxSongstatic final JukeboxSongstatic final JukeboxSongstatic final JukeboxSongstatic final JukeboxSongstatic final JukeboxSongstatic final JukeboxSong -
Method Summary
Modifier and TypeMethodDescriptionintGets the comparator output for this song.Gets the description for this song.floatGets the length in seconds for this song.getSound()Gets the sound for this song.Deprecated, for removal: This API element is subject to removal in a future version.this method assumes that jukebox song description will always be a translatable component which is not guaranteed.
-
Field Details
-
ELEVEN
-
THIRTEEN
-
FIVE
-
BLOCKS
-
CAT
-
CHIRP
-
CREATOR
-
CREATOR_MUSIC_BOX
-
FAR
-
LAVA_CHICKEN
-
MALL
-
MELLOHI
-
OTHERSIDE
-
PIGSTEP
-
PRECIPICE
-
RELIC
-
STAL
-
STRAD
-
TEARS
-
WAIT
-
WARD
-
-
Method Details
-
getTranslationKey
Deprecated, for removal: This API element is subject to removal in a future version.this method assumes that jukebox song description will always be a translatable component which is not guaranteed.Description copied from interface:TranslatableGet the translation key, suitable for use in a translation component.- Specified by:
getTranslationKeyin interfaceTranslatable- Returns:
- the translation key
-
getSound
Sound getSound()Gets the sound for this song.- Returns:
- the sound
-
getDescription
Component getDescription()Gets the description for this song.- Returns:
- the description
-
getLengthInSeconds
float getLengthInSeconds()Gets the length in seconds for this song.- Returns:
- the length in seconds
-
getComparatorOutput
int getComparatorOutput()Gets the comparator output for this song.- Returns:
- the comparator output
-