diff options
author | Jake Potrebic <[email protected]> | 2024-10-31 20:35:06 -0700 |
---|---|---|
committer | Jake Potrebic <[email protected]> | 2024-10-31 20:35:06 -0700 |
commit | 16d7d73bd590d4c0e99124feae8a46225222a541 (patch) | |
tree | 894302e9467e695ad70320a265124b4b298fc64c /patches/api/0004-Code-Generation.patch | |
parent | 1de01302d4014430384f2887b2af56fa655c1734 (diff) | |
download | Paper-16d7d73bd590d4c0e99124feae8a46225222a541.tar.gz Paper-16d7d73bd590d4c0e99124feae8a46225222a541.zip |
bunch more general fixes
Diffstat (limited to 'patches/api/0004-Code-Generation.patch')
-rw-r--r-- | patches/api/0004-Code-Generation.patch | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/patches/api/0004-Code-Generation.patch b/patches/api/0004-Code-Generation.patch index cc7000b9c6..e265943f63 100644 --- a/patches/api/0004-Code-Generation.patch +++ b/patches/api/0004-Code-Generation.patch @@ -85,10 +85,10 @@ index 0000000000000000000000000000000000000000..2512dba27edfdccbc4430815b6cba048 +} diff --git a/src/main/java/io/papermc/paper/registry/RegistryKey.java b/src/main/java/io/papermc/paper/registry/RegistryKey.java new file mode 100644 -index 0000000000000000000000000000000000000000..8410d7213370f01cbedbf7fac29bac96f150c49a +index 0000000000000000000000000000000000000000..fdef87eec3765523b00c987d4c1ccc289882e95d --- /dev/null +++ b/src/main/java/io/papermc/paper/registry/RegistryKey.java -@@ -0,0 +1,179 @@ +@@ -0,0 +1,188 @@ +package io.papermc.paper.registry; + +import net.kyori.adventure.key.Keyed; @@ -204,6 +204,17 @@ index 0000000000000000000000000000000000000000..8410d7213370f01cbedbf7fac29bac96 + * @see io.papermc.paper.registry.keys.MenuTypeKeys + */ + RegistryKey<MenuType> MENU = create("menu"); ++ /** ++ * Built-in registry for attributes. ++ * @see io.papermc.paper.registry.keys.AttributeKeys ++ */ ++ RegistryKey<Attribute> ATTRIBUTE = create("attribute"); ++ /** ++ * Built-in registry for fluids. ++ * @see io.papermc.paper.registry.keys.FluidKeys ++ */ ++ RegistryKey<Fluid> FLUID = create("fluid"); ++ + + + /* ********************** * @@ -260,13 +271,11 @@ index 0000000000000000000000000000000000000000..8410d7213370f01cbedbf7fac29bac96 + * API-only Registries * + * ******************* */ + RegistryKey<Art> PAINTING_VARIANT = create("painting_variant"); -+ RegistryKey<Attribute> ATTRIBUTE = create("attribute"); + RegistryKey<EntityType> ENTITY_TYPE = create("entity_type"); + RegistryKey<Particle> PARTICLE_TYPE = create("particle_type"); + RegistryKey<PotionType> POTION = create("potion"); + RegistryKey<Sound> SOUND_EVENT = create("sound_event"); + RegistryKey<MemoryKey<?>> MEMORY_MODULE_TYPE = create("memory_module_type"); -+ RegistryKey<Fluid> FLUID = create("fluid"); +} diff --git a/src/main/java/io/papermc/paper/registry/RegistryKeyImpl.java b/src/main/java/io/papermc/paper/registry/RegistryKeyImpl.java new file mode 100644 |