Package net.minecraftforge.registries
Class ForgeRegistries
java.lang.Object
net.minecraftforge.registries.ForgeRegistries
A class that exposes static references to all vanilla and Forge registries.
Created to have a central place to access the registries directly if modders need.
It is still advised that if you are registering things to use
RegisterEvent or DeferredRegister, but queries and iterations can use this.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IForgeRegistry<Activity>static final IForgeRegistry<Attribute>static final Supplier<IForgeRegistry<com.mojang.serialization.Codec<? extends BiomeModifier>>>CallingSupplier.get()beforeNewRegistryEventis fired will result in a null registry returned.static final IForgeRegistry<Biome>static final IForgeRegistry<BlockEntityType<?>>static final IForgeRegistry<BlockStateProviderType<?>>static final IForgeRegistry<Block>static final IForgeRegistry<ChunkStatus>static final IForgeRegistry<ArgumentTypeInfo<?,?>> (package private) static final DeferredRegister<com.mojang.serialization.Codec<? extends BiomeModifier>>(package private) static final DeferredRegister<ItemDisplayContext>(package private) static final DeferredRegister<EntityDataSerializer<?>>(package private) static final DeferredRegister<FluidType>(package private) static final DeferredRegister<com.mojang.serialization.Codec<? extends IGlobalLootModifier>>(package private) static final DeferredRegister<HolderSetType>(package private) static final DeferredRegister<com.mojang.serialization.Codec<? extends StructureModifier>>static final Supplier<IForgeRegistry<ItemDisplayContext>>CallingSupplier.get()beforeNewRegistryEventis fired will result in a null registry returned.static final IForgeRegistry<Enchantment>static final Supplier<IForgeRegistry<EntityDataSerializer<?>>>CallingSupplier.get()beforeNewRegistryEventis fired will result in a null registry returned.static final IForgeRegistry<EntityType<?>>static final IForgeRegistry<Feature<?>>static final Supplier<IForgeRegistry<FluidType>>CallingSupplier.get()beforeNewRegistryEventis fired will result in a null registry returned.static final IForgeRegistry<Fluid>static final IForgeRegistry<FoliagePlacerType<?>>static final Supplier<IForgeRegistry<com.mojang.serialization.Codec<? extends IGlobalLootModifier>>>CallingSupplier.get()beforeNewRegistryEventis fired will result in a null registry returned.static final Supplier<IForgeRegistry<HolderSetType>>CallingSupplier.get()beforeNewRegistryEventis fired will result in a null registry returned.static final IForgeRegistry<Item>static final IForgeRegistry<MemoryModuleType<?>>static final IForgeRegistry<MenuType<?>>static final IForgeRegistry<MobEffect>static final IForgeRegistry<PaintingVariant>static final IForgeRegistry<ParticleType<?>>static final IForgeRegistry<PoiType>static final IForgeRegistry<Potion>static final IForgeRegistry<RecipeSerializer<?>>static final IForgeRegistry<RecipeType<?>>static final IForgeRegistry<Schedule>static final IForgeRegistry<SensorType<?>>static final IForgeRegistry<SoundEvent>static final IForgeRegistry<StatType<?>>static final Supplier<IForgeRegistry<com.mojang.serialization.Codec<? extends StructureModifier>>>CallingSupplier.get()beforeNewRegistryEventis fired will result in a null registry returned.static final IForgeRegistry<TreeDecoratorType<?>>static final IForgeRegistry<VillagerProfession>static final IForgeRegistry<WorldCarver<?>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidinit()This function is just to make sure static initializers in other classes have run and setup their registries before we query them.
-
Field Details
-
BLOCKS
-
FLUIDS
-
ITEMS
-
MOB_EFFECTS
-
SOUND_EVENTS
-
POTIONS
-
ENCHANTMENTS
-
ENTITY_TYPES
-
BLOCK_ENTITY_TYPES
-
PARTICLE_TYPES
-
MENU_TYPES
-
PAINTING_VARIANTS
-
RECIPE_TYPES
-
RECIPE_SERIALIZERS
-
ATTRIBUTES
-
STAT_TYPES
-
COMMAND_ARGUMENT_TYPES
-
VILLAGER_PROFESSIONS
-
POI_TYPES
-
MEMORY_MODULE_TYPES
-
SENSOR_TYPES
-
SCHEDULES
-
ACTIVITIES
-
WORLD_CARVERS
-
FEATURES
-
CHUNK_STATUS
-
BLOCK_STATE_PROVIDER_TYPES
-
FOLIAGE_PLACER_TYPES
-
TREE_DECORATOR_TYPES
-
BIOMES
-
DEFERRED_ENTITY_DATA_SERIALIZERS
-
ENTITY_DATA_SERIALIZERS
CallingSupplier.get()beforeNewRegistryEventis fired will result in a null registry returned. UseForgeRegistries.Keys.ENTITY_DATA_SERIALIZERSto create aDeferredRegister. -
DEFERRED_GLOBAL_LOOT_MODIFIER_SERIALIZERS
static final DeferredRegister<com.mojang.serialization.Codec<? extends IGlobalLootModifier>> DEFERRED_GLOBAL_LOOT_MODIFIER_SERIALIZERS -
GLOBAL_LOOT_MODIFIER_SERIALIZERS
public static final Supplier<IForgeRegistry<com.mojang.serialization.Codec<? extends IGlobalLootModifier>>> GLOBAL_LOOT_MODIFIER_SERIALIZERSCallingSupplier.get()beforeNewRegistryEventis fired will result in a null registry returned. UseForgeRegistries.Keys.GLOBAL_LOOT_MODIFIER_SERIALIZERSto create aDeferredRegister. -
DEFERRED_BIOME_MODIFIER_SERIALIZERS
static final DeferredRegister<com.mojang.serialization.Codec<? extends BiomeModifier>> DEFERRED_BIOME_MODIFIER_SERIALIZERS -
BIOME_MODIFIER_SERIALIZERS
public static final Supplier<IForgeRegistry<com.mojang.serialization.Codec<? extends BiomeModifier>>> BIOME_MODIFIER_SERIALIZERSCallingSupplier.get()beforeNewRegistryEventis fired will result in a null registry returned. UseForgeRegistries.Keys.BIOME_MODIFIER_SERIALIZERSto create aDeferredRegister. -
DEFERRED_STRUCTURE_MODIFIER_SERIALIZERS
static final DeferredRegister<com.mojang.serialization.Codec<? extends StructureModifier>> DEFERRED_STRUCTURE_MODIFIER_SERIALIZERS -
STRUCTURE_MODIFIER_SERIALIZERS
public static final Supplier<IForgeRegistry<com.mojang.serialization.Codec<? extends StructureModifier>>> STRUCTURE_MODIFIER_SERIALIZERSCallingSupplier.get()beforeNewRegistryEventis fired will result in a null registry returned. UseForgeRegistries.Keys.STRUCTURE_MODIFIER_SERIALIZERSto create aDeferredRegister. -
DEFERRED_FLUID_TYPES
-
FLUID_TYPES
CallingSupplier.get()beforeNewRegistryEventis fired will result in a null registry returned. UseForgeRegistries.Keys.FLUID_TYPESto create aDeferredRegister. -
DEFERRED_HOLDER_SET_TYPES
-
HOLDER_SET_TYPES
CallingSupplier.get()beforeNewRegistryEventis fired will result in a null registry returned. UseForgeRegistries.Keys.HOLDER_SET_TYPESto create aDeferredRegister. -
DEFERRED_DISPLAY_CONTEXTS
-
DISPLAY_CONTEXTS
CallingSupplier.get()beforeNewRegistryEventis fired will result in a null registry returned. UseForgeRegistries.Keys.DISPLAY_CONTEXTSto create aDeferredRegister.
-
-
Constructor Details
-
ForgeRegistries
public ForgeRegistries()
-
-
Method Details
-
init
private static void init()This function is just to make sure static initializers in other classes have run and setup their registries before we query them.
-