2424 */
2525package org .spongepowered .api .registry ;
2626
27+ import org .checkerframework .checker .nullness .qual .NonNull ;
2728import org .spongepowered .api .ResourceKey ;
2829import org .spongepowered .api .Sponge ;
2930import org .spongepowered .api .advancement .AdvancementType ;
@@ -181,30 +182,30 @@ public final class RegistryTypes {
181182
182183 public static final DefaultedRegistryType <EnchantmentType > ENCHANTMENT_TYPE = RegistryTypes .minecraftKeyInGame ("enchantment" );
183184
184- public static final DefaultedRegistryType <EntityType <?>> ENTITY_TYPE = RegistryTypes .minecraftKeyInGame ("entity_type" );
185+ public static final DefaultedRegistryType <EntityType <@ NonNull ?>> ENTITY_TYPE = RegistryTypes .minecraftKeyInGame ("entity_type" );
185186
186187 public static final DefaultedRegistryType <FluidType > FLUID_TYPE = RegistryTypes .minecraftKeyInGame ("fluid" );
187188
188189 public static final DefaultedRegistryType <ItemType > ITEM_TYPE = RegistryTypes .minecraftKeyInGame ("item" );
189190
190191 public static final DefaultedRegistryType <ParticleType > PARTICLE_TYPE = RegistryTypes .minecraftKeyInGame ("particle_type" );
191192
192- public static final DefaultedRegistryType <RecipeType <?>> RECIPE_TYPE = RegistryTypes .minecraftKeyInGame ("recipe_type" );
193+ public static final DefaultedRegistryType <ProfessionType > PROFESSION_TYPE = RegistryTypes .minecraftKeyInGame ("villager_profession" );
194+
195+ public static final DefaultedRegistryType <PotionType > POTION_TYPE = RegistryTypes .minecraftKeyInGame ("potion" );
196+
197+ public static final DefaultedRegistryType <RecipeType <@ NonNull ?>> RECIPE_TYPE = RegistryTypes .minecraftKeyInGame ("recipe_type" );
193198
194199 public static final DefaultedRegistryType <SoundType > SOUND_TYPE = RegistryTypes .minecraftKeyInGame ("sound_event" );
195200
196201 public static final DefaultedRegistryType <Statistic > STATISTIC = RegistryTypes .minecraftKeyInGame ("custom_stat" );
197202
198- public static final DefaultedRegistryType <StatisticCategory > STATISTIC_CATEGORY = RegistryTypes .minecraftKeyInGame ("statistic_category " );
203+ public static final DefaultedRegistryType <StatisticCategory > STATISTIC_CATEGORY = RegistryTypes .minecraftKeyInGame ("stat_type " );
199204
200205 public static final DefaultedRegistryType <Structure > STRUCTURE = RegistryTypes .minecraftKeyInGame ("worldgen/structure_feature" );
201206
202207 public static final DefaultedRegistryType <VillagerType > VILLAGER_TYPE = RegistryTypes .minecraftKeyInGame ("villager_type" );
203208
204- public static final DefaultedRegistryType <ProfessionType > PROFESSION_TYPE = RegistryTypes .minecraftKeyInGame ("villager_profession" );
205-
206- public static final DefaultedRegistryType <PotionType > POTION_TYPE = RegistryTypes .minecraftKeyInGame ("potion" );
207-
208209 // ----
209210
210211 public static final DefaultedRegistryType <AccountDeletionResultType > ACCOUNT_DELETION_RESULT_TYPE = RegistryTypes .spongeKeyInGame ("account_deletion_result_type" );
@@ -221,6 +222,8 @@ public final class RegistryTypes {
221222
222223 public static final DefaultedRegistryType <BannerPatternShape > BANNER_PATTERN_SHAPE = RegistryTypes .spongeKeyInGame ("banner_pattern_shape" );
223224
225+ public static final DefaultedRegistryType <Tag <BlockType >> BLOCK_TYPE_TAGS = RegistryTypes .spongeKeyInGame ("block_type_tags" );
226+
224227 public static final DefaultedRegistryType <BoatType > BOAT_TYPE = RegistryTypes .spongeKeyInGame ("boat_type" );
225228
226229 public static final DefaultedRegistryType <BodyPart > BODY_PART = RegistryTypes .spongeKeyInGame ("body_part" );
@@ -229,8 +232,6 @@ public final class RegistryTypes {
229232
230233 public static final DefaultedRegistryType <CatType > CAT_TYPE = RegistryTypes .spongeKeyInGame ("cat_type" );
231234
232- public static final DefaultedRegistryType <ValueParameter <?>> REGISTRY_KEYED_VALUE_PARAMETER = RegistryTypes .spongeKeyInGame ("value_parameter" );
233-
234235 public static final DefaultedRegistryType <ChatVisibility > CHAT_VISIBILITY = RegistryTypes .spongeKeyInGame ("chat_visibility" );
235236
236237 public static final DefaultedRegistryType <ChestAttachmentType > CHEST_ATTACHMENT_TYPE = RegistryTypes .spongeKeyInGame ("chest_attachment_type" );
@@ -247,7 +248,7 @@ public final class RegistryTypes {
247248
248249 public static final DefaultedRegistryType <CommandRegistrarType <?>> COMMAND_REGISTRAR_TYPE = RegistryTypes .spongeKeyInGame ("command_registrar_type" );
249250
250- public static final DefaultedRegistryType <CommandTreeNodeType <?>> COMMAND_TREE_NODE_TYPE = RegistryTypes .spongeKeyInGame ("command_tree_node_type" );
251+ public static final DefaultedRegistryType <CommandTreeNodeType <@ NonNull ?>> COMMAND_TREE_NODE_TYPE = RegistryTypes .spongeKeyInGame ("command_tree_node_type" );
251252
252253 public static final DefaultedRegistryType <ComparatorMode > COMPARATOR_MODE = RegistryTypes .spongeKeyInGame ("comparator_mode" );
253254
@@ -273,14 +274,18 @@ public final class RegistryTypes {
273274
274275 public static final DefaultedRegistryType <DyeColor > DYE_COLOR = RegistryTypes .spongeKeyInGame ("dye_color" );
275276
276- public static final DefaultedRegistryType <EnumStateProperty <?>> ENUM_STATE_PROPERTY = RegistryTypes .spongeKeyInGame ("enum_state_property" );
277+ public static final DefaultedRegistryType <EnumStateProperty <@ NonNull ?>> ENUM_STATE_PROPERTY = RegistryTypes .spongeKeyInGame ("enum_state_property" );
278+
279+ public static final DefaultedRegistryType <Tag <EntityType <@ NonNull ?>>> ENTITY_TYPE_TAGS = RegistryTypes .spongeKeyInGame ("entity_type_tags" );
277280
278281 public static final DefaultedRegistryType <EquipmentGroup > EQUIPMENT_GROUP = RegistryTypes .spongeKeyInGame ("equipment_group" );
279282
280283 public static final DefaultedRegistryType <EquipmentType > EQUIPMENT_TYPE = RegistryTypes .spongeKeyInGame ("equipment_type" );
281284
282285 public static final DefaultedRegistryType <FireworkShape > FIREWORK_SHAPE = RegistryTypes .spongeKeyInGame ("firework_shape" );
283286
287+ public static final DefaultedRegistryType <Tag <FluidType >> FLUID_TYPE_TAGS = RegistryTypes .spongeKeyInGame ("fluid_type_tags" );
288+
284289 public static final DefaultedRegistryType <FoxType > FOX_TYPE = RegistryTypes .spongeKeyInGame ("fox_type" );
285290
286291 public static final DefaultedRegistryType <GameMode > GAME_MODE = RegistryTypes .spongeKeyInGame ("game_mode" );
@@ -309,10 +314,20 @@ public final class RegistryTypes {
309314
310315 public static final DefaultedRegistryType <ItemTier > ITEM_TIER = RegistryTypes .spongeKeyInGame ("item_tier" );
311316
317+ public static final DefaultedRegistryType <Tag <ItemType >> ITEM_TYPE_TAGS = RegistryTypes .spongeKeyInGame ("item_type_tags" );
318+
312319 public static final DefaultedRegistryType <LightType > LIGHT_TYPE = RegistryTypes .spongeKeyInGame ("light_type" );
313320
314321 public static final DefaultedRegistryType <LlamaType > LLAMA_TYPE = RegistryTypes .spongeKeyInGame ("llama_type" );
315322
323+ public static final DefaultedRegistryType <MapColorType > MAP_COLOR_TYPE = RegistryTypes .spongeKeyInGame ("map_color_type" );
324+
325+ public static final DefaultedRegistryType <MapDecorationOrientation > MAP_DECORATION_ORIENTATION = RegistryTypes .spongeKeyInGame ("map_decoration_orientation" );
326+
327+ public static final DefaultedRegistryType <MapDecorationType > MAP_DECORATION_TYPE = RegistryTypes .spongeKeyInGame ("map_decoration_type" );
328+
329+ public static final DefaultedRegistryType <MapShade > MAP_SHADE = RegistryTypes .spongeKeyInGame ("map_shade" );
330+
316331 public static final DefaultedRegistryType <MatterType > MATTER_TYPE = RegistryTypes .spongeKeyInGame ("matter_type" );
317332
318333 public static final DefaultedRegistryType <Mirror > MIRROR = RegistryTypes .spongeKeyInGame ("mirror" );
@@ -361,6 +376,8 @@ public final class RegistryTypes {
361376
362377 public static final DefaultedRegistryType <RailDirection > RAIL_DIRECTION = RegistryTypes .spongeKeyInGame ("rail_direction" );
363378
379+ public static final DefaultedRegistryType <ValueParameter <?>> REGISTRY_KEYED_VALUE_PARAMETER = RegistryTypes .spongeKeyInGame ("value_parameter" );
380+
364381 public static final DefaultedRegistryType <ResolveOperation > RESOLVE_OPERATION = RegistryTypes .spongeKeyInGame ("resolve_operation" );
365382
366383 public static final DefaultedRegistryType <Rotation > ROTATION = RegistryTypes .spongeKeyInGame ("rotation" );
@@ -381,6 +398,8 @@ public final class RegistryTypes {
381398
382399 public static final DefaultedRegistryType <StructureMode > STRUCTURE_MODE = RegistryTypes .spongeKeyInGame ("structure_mode" );
383400
401+ public static final DefaultedRegistryType <TagType <@ NonNull ?>> TAG_TYPES = RegistryTypes .spongeKeyInGame ("tag_type" );
402+
384403 public static final DefaultedRegistryType <TaskPriority > TASK_PRIORITY = RegistryTypes .spongeKeyInGame ("task_priority" );
385404
386405 public static final DefaultedRegistryType <TeleportHelperFilter > TELEPORT_HELPER_FILTER = RegistryTypes .spongeKeyInGame ("teleport_helper_filter" );
@@ -389,7 +408,7 @@ public final class RegistryTypes {
389408
390409 public static final DefaultedRegistryType <TransactionType > TRANSACTION_TYPE = RegistryTypes .spongeKeyInGame ("transaction_type" );
391410
392- public static final DefaultedRegistryType <Trigger <?>> TRIGGER = RegistryTypes .spongeKeyInGame ("trigger" );
411+ public static final DefaultedRegistryType <Trigger <@ NonNull ?>> TRIGGER = RegistryTypes .spongeKeyInGame ("trigger" );
393412
394413 public static final DefaultedRegistryType <TropicalFishShape > TROPICAL_FISH_SHAPE = RegistryTypes .spongeKeyInGame ("tropical_fish_shape" );
395414
@@ -399,24 +418,6 @@ public final class RegistryTypes {
399418
400419 public static final DefaultedRegistryType <WireAttachmentType > WIRE_ATTACHMENT_TYPE = RegistryTypes .spongeKeyInGame ("wire_attachment_type" );
401420
402- public static final DefaultedRegistryType <MapColorType > MAP_COLOR_TYPE = RegistryTypes .spongeKeyInGame ("map_color_type" );
403-
404- public static final DefaultedRegistryType <MapDecorationOrientation > MAP_DECORATION_ORIENTATION = RegistryTypes .spongeKeyInGame ("map_decoration_orientation" );
405-
406- public static final DefaultedRegistryType <MapDecorationType > MAP_DECORATION_TYPE = RegistryTypes .spongeKeyInGame ("map_decoration_type" );
407-
408- public static final DefaultedRegistryType <MapShade > MAP_SHADE = RegistryTypes .spongeKeyInGame ("map_shade" );
409-
410- public static final DefaultedRegistryType <TagType <?>> TAG_TYPES = RegistryTypes .spongeKeyInGame ("tag_type" );
411-
412- public static final DefaultedRegistryType <Tag <BlockType >> BLOCK_TYPE_TAGS = RegistryTypes .spongeKeyInGame ("block_type_tags" );
413-
414- public static final DefaultedRegistryType <Tag <ItemType >> ITEM_TYPE_TAGS = RegistryTypes .spongeKeyInGame ("item_type_tags" );
415-
416- public static final DefaultedRegistryType <Tag <EntityType <?>>> ENTITY_TYPE_TAGS = RegistryTypes .spongeKeyInGame ("entity_type_tags" );
417-
418- public static final DefaultedRegistryType <Tag <FluidType >> FLUID_TYPE_TAGS = RegistryTypes .spongeKeyInGame ("fluid_type_tags" );
419-
420421 // @formatter:on
421422
422423 private static <V > RegistryType <V > minecraftKey (final String key ) {
0 commit comments