Skip to content

Commit 5a4a755

Browse files
committed
simplify generics in RegistryTypes
1 parent 7443ebb commit 5a4a755

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/main/java/org/spongepowered/api/registry/RegistryTypes.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
*/
2525
package org.spongepowered.api.registry;
2626

27-
import org.checkerframework.checker.nullness.qual.NonNull;
2827
import org.spongepowered.api.ResourceKey;
2928
import org.spongepowered.api.Sponge;
3029
import org.spongepowered.api.advancement.Advancement;
@@ -103,7 +102,6 @@
103102
import org.spongepowered.api.effect.potion.PotionEffectType;
104103
import org.spongepowered.api.effect.sound.SoundType;
105104
import org.spongepowered.api.effect.sound.music.MusicDisc;
106-
import org.spongepowered.api.entity.Entity;
107105
import org.spongepowered.api.entity.EntityCategory;
108106
import org.spongepowered.api.entity.EntityType;
109107
import org.spongepowered.api.entity.ai.goal.GoalExecutorType;
@@ -234,7 +232,7 @@ public final class RegistryTypes {
234232

235233
public static final DefaultedRegistryType<EntityCategory> ENTITY_CATEGORY = RegistryTypes.spongeKeyInGame("mob_category");
236234

237-
public static final DefaultedRegistryType<EntityType<? extends @NonNull Entity>> ENTITY_TYPE = RegistryTypes.minecraftKeyInGame("entity_type");
235+
public static final DefaultedRegistryType<EntityType<?>> ENTITY_TYPE = RegistryTypes.minecraftKeyInGame("entity_type");
238236

239237
public static final DefaultedRegistryType<Feature> FEATURE = RegistryTypes.minecraftKeyInServer("worldgen/configured_feature");
240238

@@ -270,7 +268,7 @@ public final class RegistryTypes {
270268

271269
public static final DefaultedRegistryType<PotionType> POTION_TYPE = RegistryTypes.minecraftKeyInGame("potion");
272270

273-
public static final DefaultedRegistryType<RecipeType<? extends @NonNull Recipe<?>>> RECIPE_TYPE = RegistryTypes.minecraftKeyInGame("recipe_type");
271+
public static final DefaultedRegistryType<RecipeType<?>> RECIPE_TYPE = RegistryTypes.minecraftKeyInGame("recipe_type");
274272

275273
public static final DefaultedRegistryType<SoundType> SOUND_TYPE = RegistryTypes.minecraftKeyInGame("sound_event");
276274

@@ -284,7 +282,7 @@ public final class RegistryTypes {
284282

285283
public static final DefaultedRegistryType<StructureType> STRUCTURE_TYPE = RegistryTypes.minecraftKeyInGame("worldgen/structure_type");
286284

287-
public static final DefaultedRegistryType<Trigger<? extends @NonNull Object>> TRIGGER = RegistryTypes.minecraftKeyInGame("trigger_type");
285+
public static final DefaultedRegistryType<Trigger<?>> TRIGGER = RegistryTypes.minecraftKeyInGame("trigger_type");
288286

289287
public static final DefaultedRegistryType<TrimMaterial> TRIM_MATERIAL = RegistryTypes.minecraftKeyInServer("trim_material");
290288

@@ -337,7 +335,7 @@ public final class RegistryTypes {
337335

338336
public static final DefaultedRegistryType<CommandRegistrarType<?>> COMMAND_REGISTRAR_TYPE = RegistryTypes.spongeKeyInGame("command_registrar_type");
339337

340-
public static final DefaultedRegistryType<CommandTreeNodeType<? extends @NonNull Object>> COMMAND_TREE_NODE_TYPE = RegistryTypes.spongeKeyInServer("command_tree_node_type");
338+
public static final DefaultedRegistryType<CommandTreeNodeType<?>> COMMAND_TREE_NODE_TYPE = RegistryTypes.spongeKeyInServer("command_tree_node_type");
341339

342340
public static final DefaultedRegistryType<ComparatorMode> COMPARATOR_MODE = RegistryTypes.spongeKeyInGame("comparator_mode");
343341

0 commit comments

Comments
 (0)