Skip to content

Commit ea07d27

Browse files
committed
Update javadocs, move to better holder
1 parent 6bd1658 commit ea07d27

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ private static MusicInstrument getInstrument(final String key) {
6060
}
6161

6262
/**
63-
* Gets for how long the use duration is for the instrument.
63+
* Gets the use duration of this music instrument.
6464
*
65-
* @return the duration.
65+
* @return the duration expressed in seconds.
6666
*/
6767
public abstract float getDuration();
6868

@@ -83,7 +83,7 @@ private static MusicInstrument getInstrument(final String key) {
8383
/**
8484
* Gets the sound for this instrument.
8585
*
86-
* @return a sound
86+
* @return the sound
8787
*/
8888
public abstract Sound getSound();
8989

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public static Sound minecraftToBukkit(SoundEvent minecraft) {
1515
}
1616

1717
public static Sound minecraftHolderToBukkit(Holder<SoundEvent> minecraft) {
18-
return minecraftToBukkit(minecraft.value());
18+
return CraftRegistry.minecraftHolderToBukkit(minecraft, Registries.SOUND_EVENT);
1919
}
2020

2121
public static SoundEvent bukkitToMinecraft(Sound bukkit) {

0 commit comments

Comments
 (0)