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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final IForgeRegistry<Activity>
static final IForgeRegistry<Attribute>
static final Supplier<IForgeRegistry<com.mojang.serialization.Codec<? extends BiomeModifier>>>
CallingSupplier.get()
beforeNewRegistryEvent
is fired will result in a null registry returned.static final Supplier<IForgeRegistry<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<?,
?>> (package private) static final DeferredRegister<com.mojang.serialization.Codec<? extends BiomeModifier>>
(package private) static final DeferredRegister<BiomeModifier>
(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>>
(package private) static final DeferredRegister<StructureModifier>
static final IForgeRegistry<Enchantment>
static final Supplier<IForgeRegistry<EntityDataSerializer<?>>>
CallingSupplier.get()
beforeNewRegistryEvent
is fired will result in a null registry returned.static final IForgeRegistry<EntityType<?>>
static final IForgeRegistry<Feature<?>>
static final Supplier<IForgeRegistry<FluidType>>
CallingSupplier.get()
beforeNewRegistryEvent
is 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()
beforeNewRegistryEvent
is fired will result in a null registry returned.static final Supplier<IForgeRegistry<HolderSetType>>
CallingSupplier.get()
beforeNewRegistryEvent
is 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()
beforeNewRegistryEvent
is fired will result in a null registry returned.static final Supplier<IForgeRegistry<StructureModifier>>
static final IForgeRegistry<TreeDecoratorType<?>>
static final IForgeRegistry<VillagerProfession>
static final IForgeRegistry<WorldCarver<?>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate 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.
-
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()
beforeNewRegistryEvent
is fired will result in a null registry returned. UseForgeRegistries.Keys.ENTITY_DATA_SERIALIZERS
to 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()
beforeNewRegistryEvent
is fired will result in a null registry returned. UseForgeRegistries.Keys.GLOBAL_LOOT_MODIFIER_SERIALIZERS
to 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()
beforeNewRegistryEvent
is fired will result in a null registry returned. UseForgeRegistries.Keys.BIOME_MODIFIER_SERIALIZERS
to 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()
beforeNewRegistryEvent
is fired will result in a null registry returned. UseForgeRegistries.Keys.STRUCTURE_MODIFIER_SERIALIZERS
to create aDeferredRegister
. -
DEFERRED_FLUID_TYPES
-
FLUID_TYPES
CallingSupplier.get()
beforeNewRegistryEvent
is fired will result in a null registry returned. UseForgeRegistries.Keys.FLUID_TYPES
to create aDeferredRegister
. -
DEFERRED_HOLDER_SET_TYPES
-
HOLDER_SET_TYPES
CallingSupplier.get()
beforeNewRegistryEvent
is fired will result in a null registry returned. UseForgeRegistries.Keys.HOLDER_SET_TYPES
to create aDeferredRegister
. -
DEFERRED_BIOME_MODIFIERS
-
BIOME_MODIFIERS_BUILTIN
-
DEFERRED_STRUCTURE_MODIFIERS
-
STRUCTURE_MODIFIERS_BUILTIN
-
-
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.
-