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 SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final IForgeRegistry<Activity>static final IForgeRegistry<Attribute>static final Supplier<IForgeRegistry<com.mojang.serialization.Codec<? extends BiomeModifier>>>static final IForgeRegistry<Biome>static final IForgeRegistry<BlockEntityType<?>>static final IForgeRegistry<BlockStateProviderType<?>>static final IForgeRegistry<Block>static final IForgeRegistry<ChunkStatus>static final IForgeRegistry<ArgumentTypeInfo<?,?>> static final Supplier<IForgeRegistry<com.mojang.serialization.Codec<? extends ICondition>>>static final Supplier<IForgeRegistry<ItemDisplayContext>>static final IForgeRegistry<Enchantment>static final Supplier<IForgeRegistry<EntityDataSerializer<?>>>static final IForgeRegistry<EntityType<?>>static final IForgeRegistry<Feature<?>>static final Supplier<IForgeRegistry<FluidType>>static final IForgeRegistry<Fluid>static final IForgeRegistry<FoliagePlacerType<?>>static final Supplier<IForgeRegistry<com.mojang.serialization.Codec<? extends IGlobalLootModifier>>>static final Supplier<IForgeRegistry<HolderSetType>>static final Supplier<IForgeRegistry<IIngredientSerializer<?>>>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<?>>(package private) static final List<DeferredRegister<?>>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>>>static final IForgeRegistry<TreeDecoratorType<?>>static final IForgeRegistry<VillagerProfession>static final IForgeRegistry<WorldCarver<?>>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate static <T> IForgeRegistry<T>active(ResourceKey<Registry<T>> key) private static voidinit()This function is just to make sure static initializers in other classes have run and setup their registries before we query them.private static final <T> Supplier<IForgeRegistry<T>>registry(ResourceKey<Registry<T>> key, Supplier<RegistryBuilder<T>> factory) 
- 
Field Details- 
registries
- 
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
- 
ENTITY_DATA_SERIALIZERS
- 
GLOBAL_LOOT_MODIFIER_SERIALIZERSpublic static final Supplier<IForgeRegistry<com.mojang.serialization.Codec<? extends IGlobalLootModifier>>> GLOBAL_LOOT_MODIFIER_SERIALIZERS
- 
BIOME_MODIFIER_SERIALIZERSpublic static final Supplier<IForgeRegistry<com.mojang.serialization.Codec<? extends BiomeModifier>>> BIOME_MODIFIER_SERIALIZERS
- 
STRUCTURE_MODIFIER_SERIALIZERSpublic static final Supplier<IForgeRegistry<com.mojang.serialization.Codec<? extends StructureModifier>>> STRUCTURE_MODIFIER_SERIALIZERS
- 
FLUID_TYPES
- 
HOLDER_SET_TYPES
- 
DISPLAY_CONTEXTS
- 
CONDITION_SERIALIZERSpublic static final Supplier<IForgeRegistry<com.mojang.serialization.Codec<? extends ICondition>>> CONDITION_SERIALIZERS
- 
INGREDIENT_SERIALIZERS
 
- 
- 
Constructor Details- 
ForgeRegistriespublic ForgeRegistries()
 
- 
- 
Method Details- 
active
- 
registryprivate static final <T> Supplier<IForgeRegistry<T>> registry(ResourceKey<Registry<T>> key, Supplier<RegistryBuilder<T>> factory) 
- 
initprivate 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.
 
-