mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-13 22:25:53 +01:00
Fix SoundEvent
not being an adventure sound type
This commit is contained in:
parent
70c757e8b5
commit
82602a686e
@ -1,5 +1,7 @@
|
||||
package net.minestom.server.sound;
|
||||
|
||||
import net.kyori.adventure.key.Key;
|
||||
import net.kyori.adventure.sound.Sound;
|
||||
import net.minestom.server.registry.ProtocolObject;
|
||||
import net.minestom.server.utils.NamespaceID;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
@ -9,7 +11,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
import java.util.Collection;
|
||||
|
||||
@ApiStatus.NonExtendable
|
||||
public interface SoundEvent extends ProtocolObject, SoundEventConstants {
|
||||
public interface SoundEvent extends ProtocolObject, Sound.Type, SoundEventConstants {
|
||||
|
||||
static @NotNull Collection<@NotNull SoundEvent> values() {
|
||||
return SoundEventImpl.values();
|
||||
@ -26,4 +28,9 @@ public interface SoundEvent extends ProtocolObject, SoundEventConstants {
|
||||
static @Nullable SoundEvent fromId(int id) {
|
||||
return SoundEventImpl.getId(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
default @NotNull Key key() {
|
||||
return ProtocolObject.super.key();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user