mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-04-13 09:41:09 +00:00
#1093: Add MusicInstrument fields for description, range, duration and sound
This commit is contained in:
parent
d8d04ae927
commit
09a64a60ff
1 changed files with 30 additions and 0 deletions
|
@ -18,6 +18,36 @@ public abstract class MusicInstrument implements Keyed, RegistryAware {
|
|||
public static final MusicInstrument YEARN_GOAT_HORN = getInstrument("yearn_goat_horn");
|
||||
public static final MusicInstrument DREAM_GOAT_HORN = getInstrument("dream_goat_horn");
|
||||
|
||||
/**
|
||||
* Gets how long the use duration is for the instrument.
|
||||
*
|
||||
* @return the duration.
|
||||
*/
|
||||
public abstract float getDuration();
|
||||
|
||||
/**
|
||||
* Gets the range of the sound.
|
||||
*
|
||||
* @return the range of the sound.
|
||||
*/
|
||||
public abstract float getRange();
|
||||
|
||||
/**
|
||||
* Gets the description of this instrument.
|
||||
*
|
||||
* @return the description.
|
||||
*/
|
||||
@NotNull
|
||||
public abstract String getDescription();
|
||||
|
||||
/**
|
||||
* Gets the sound/sound-event for this instrument.
|
||||
*
|
||||
* @return a sound.
|
||||
*/
|
||||
@NotNull
|
||||
public abstract Sound getSoundEvent();
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue