#1074: Make Sound an interface

By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
Bukkit/Spigot 2024-11-02 11:00:03 +11:00
parent a45964ac0e
commit 79319a05d4
2 changed files with 1689 additions and 1651 deletions

View File

@ -242,7 +242,7 @@ public interface Registry<T extends Keyed> extends Iterable<T> {
*
* @see Sound
*/
Registry<Sound> SOUNDS = new SimpleRegistry<>(Sound.class);
Registry<Sound> SOUNDS = Objects.requireNonNull(Bukkit.getRegistry(Sound.class), "No registry present for Sound. This is a bug.");
/**
* Trim materials.
*

File diff suppressed because it is too large Load Diff