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
RegistryEvent.Register 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 IForgeRegistry<Biome>static final IForgeRegistry<BlockEntityType<?>>static final IForgeRegistry<BlockStateProviderType<?>>static final IForgeRegistry<Block>static final IForgeRegistry<ChunkStatus>static final IForgeRegistry<MenuType<?>>static final Supplier<IForgeRegistry<DataSerializerEntry>>(package private) static final DeferredRegister<DataSerializerEntry>(package private) static final DeferredRegister<GlobalLootModifierSerializer<?>>(package private) static final DeferredRegister<ForgeWorldPreset>static final IForgeRegistry<Enchantment>static final IForgeRegistry<EntityType<?>>static final IForgeRegistry<Feature<?>>static final IForgeRegistry<Fluid>static final IForgeRegistry<FoliagePlacerType<?>>static final IForgeRegistry<Item>static final Supplier<IForgeRegistry<GlobalLootModifierSerializer<?>>>static final IForgeRegistry<MemoryModuleType<?>>static final IForgeRegistry<MobEffect>static final IForgeRegistry<Motive>static final IForgeRegistry<ParticleType<?>>static final IForgeRegistry<PoiType>static final IForgeRegistry<Potion>static final IForgeRegistry<VillagerProfession>static final IForgeRegistry<RecipeSerializer<?>>static final IForgeRegistry<Schedule>static final IForgeRegistry<SensorType<?>>static final IForgeRegistry<SoundEvent>static final IForgeRegistry<StatType<?>>static final IForgeRegistry<StructureFeature<?>>static final IForgeRegistry<TreeDecoratorType<?>>static final IForgeRegistry<WorldCarver<?>>static final Supplier<IForgeRegistry<ForgeWorldPreset>> -
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
-
ENTITIES
-
BLOCK_ENTITIES
-
PARTICLE_TYPES
-
CONTAINERS
-
PAINTING_TYPES
-
RECIPE_SERIALIZERS
-
ATTRIBUTES
-
STAT_TYPES
-
PROFESSIONS
-
POI_TYPES
-
MEMORY_MODULE_TYPES
-
SENSOR_TYPES
-
SCHEDULES
-
ACTIVITIES
-
WORLD_CARVERS
-
FEATURES
-
CHUNK_STATUS
-
STRUCTURE_FEATURES
-
BLOCK_STATE_PROVIDER_TYPES
-
FOLIAGE_PLACER_TYPES
-
TREE_DECORATOR_TYPES
-
BIOMES
-
DEFERRED_DATA_SERIALIZERS
-
DATA_SERIALIZERS
-
DEFERRED_LOOT_MODIFIER_SERIALIZERS
-
LOOT_MODIFIER_SERIALIZERS
public static final Supplier<IForgeRegistry<GlobalLootModifierSerializer<?>>> LOOT_MODIFIER_SERIALIZERS -
DEFERRED_WORLD_TYPES
-
WORLD_TYPES
-
-
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.
-