Introduce registry entry and builders

Co-authored-by: kokiriglade <git@kokirigla.de>
This commit is contained in:
Bjarne Koll
2024-06-13 22:35:05 +02:00
parent 146cd1a015
commit fcc777a0a8
8 changed files with 551 additions and 3 deletions
@@ -74,9 +74,10 @@ public sealed interface RegistryKey<T> extends Keyed permits RegistryKeyImpl {
@ApiStatus.Internal
RegistryKey<BlockType> BLOCK = create("block");
/**
* @apiNote DO NOT USE
* @apiNote use preferably only in the context of registry entries.
* @see io.papermc.paper.registry.data
*/
@ApiStatus.Internal
@ApiStatus.Experimental // Paper - already required for registry builders
RegistryKey<ItemType> ITEM = create("item");
/**
* Built-in registry for cat variants.