SPIGOT-7034: Add methods for set/get instrument in Goat Horn

By: byquanton <32410361+byquanton@users.noreply.github.com>
This commit is contained in:
Bukkit/Spigot
2023-01-08 20:36:06 +11:00
parent 5c925130eb
commit 0171060ae2
2 changed files with 93 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
package org.bukkit.inventory.meta;
import org.bukkit.MusicInstrument;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public interface MusicInstrumentMeta extends ItemMeta {
/**
* Sets the goat horn's instrument.
*
* @param instrument the instrument to set
*/
void setInstrument(@Nullable MusicInstrument instrument);
/**
* Gets the instrument of the goat horn.
*
* @return The instrument of the goat horn
*/
@Nullable
MusicInstrument getInstrument();
@Override
@NotNull
MusicInstrumentMeta clone();
}