File tree 2 files changed +4
-4
lines changed
paper-api/src/main/java/org/bukkit
paper-server/src/main/java/org/bukkit/craftbukkit
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -60,9 +60,9 @@ private static MusicInstrument getInstrument(final String key) {
60
60
}
61
61
62
62
/**
63
- * Gets for how long the use duration is for the instrument.
63
+ * Gets the use duration of this music instrument.
64
64
*
65
- * @return the duration.
65
+ * @return the duration expressed in seconds .
66
66
*/
67
67
public abstract float getDuration ();
68
68
@@ -83,7 +83,7 @@ private static MusicInstrument getInstrument(final String key) {
83
83
/**
84
84
* Gets the sound for this instrument.
85
85
*
86
- * @return a sound
86
+ * @return the sound
87
87
*/
88
88
public abstract Sound getSound ();
89
89
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public static Sound minecraftToBukkit(SoundEvent minecraft) {
15
15
}
16
16
17
17
public static Sound minecraftHolderToBukkit (Holder <SoundEvent > minecraft ) {
18
- return minecraftToBukkit (minecraft . value () );
18
+ return CraftRegistry . minecraftHolderToBukkit (minecraft , Registries . SOUND_EVENT );
19
19
}
20
20
21
21
public static SoundEvent bukkitToMinecraft (Sound bukkit ) {
You can’t perform that action at this time.
0 commit comments