#1074: Make Sound an interface

This commit is contained in:
DerFrZocker 2024-11-02 11:00:03 +11:00 committed by md_5
parent 97c5926140
commit c389f5a493
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11
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