#1070: Make Attribute an interface and align names with the new minecraft ones

By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
Bukkit/Spigot
2024-10-29 06:43:08 +11:00
parent 8ec64c4481
commit 5b78d5d8a2
3 changed files with 62 additions and 46 deletions

View File

@@ -93,7 +93,7 @@ public interface Registry<T extends Keyed> extends Iterable<T> {
*
* @see Attribute
*/
Registry<Attribute> ATTRIBUTE = new SimpleRegistry<>(Attribute.class);
Registry<Attribute> ATTRIBUTE = Objects.requireNonNull(Bukkit.getRegistry(Attribute.class), "No registry present for Attribute. This is a bug.");
/**
* Server banner patterns.
*