diff --git a/src/main/java/net/minestom/server/sound/SoundEvent.java b/src/main/java/net/minestom/server/sound/SoundEvent.java index 3a7193eac..61db8cfed 100644 --- a/src/main/java/net/minestom/server/sound/SoundEvent.java +++ b/src/main/java/net/minestom/server/sound/SoundEvent.java @@ -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(); + } }