#1093: Add MusicInstrument fields for description, range, duration and sound

This commit is contained in:
Doc 2025-01-16 19:46:49 +11:00 committed by md_5
parent d8d04ae927
commit 09a64a60ff
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

View file

@ -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}
*