Skip to content

Commit 6bd1658

Browse files
Doc94lynxplay
authored andcommitted
Instrument getSoundEvent to getSound
1 parent 47023ce commit 6bd1658

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

paper-api/src/main/java/org/bukkit/MusicInstrument.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ private static MusicInstrument getInstrument(final String key) {
8181
public abstract Component description();
8282

8383
/**
84-
* Gets the sound/sound-event for this instrument.
84+
* Gets the sound for this instrument.
8585
*
8686
* @return a sound
8787
*/
88-
public abstract Sound getSoundEvent();
88+
public abstract Sound getSound();
8989

9090
/**
9191
* @deprecated use {@link Registry#getKey(Keyed)}, {@link io.papermc.paper.registry.RegistryAccess#getRegistry(io.papermc.paper.registry.RegistryKey)},

paper-server/src/main/java/org/bukkit/craftbukkit/CraftMusicInstrument.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public Component description() {
8585
}
8686

8787
@Override
88-
public Sound getSoundEvent() {
88+
public Sound getSound() {
8989
return CraftSound.minecraftHolderToBukkit(this.getHandle().soundEvent());
9090
}
9191

0 commit comments

Comments
 (0)