Remove SoundCategory.java

This commit is contained in:
TheMode 2021-07-27 06:58:42 +02:00
parent 5285665939
commit d61b1d48b7

View File

@ -1,37 +0,0 @@
package net.minestom.server.sound;
import net.kyori.adventure.sound.Sound;
import org.jetbrains.annotations.NotNull;
/**
* @deprecated Use {@link Sound.Source}
*/
@Deprecated
public enum SoundCategory implements Sound.Source.Provider {
MASTER,
MUSIC,
RECORDS,
WEATHER,
BLOCKS,
HOSTILE,
NEUTRAL,
PLAYERS,
AMBIENT,
VOICE;
/**
* Gets the Adventure source representing this sound category.
*
* @return the source
* @deprecated Use {@link #soundSource()}
*/
@Deprecated
public @NotNull Sound.Source asSource() {
return this.soundSource();
}
@Override
public @NotNull Sound.Source soundSource() {
return Sound.Source.values()[this.ordinal()];
}
}