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>>>
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> IForgeRegistry<T>
active
(ResourceKey<Registry<T>> key) 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.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_SERIALIZERS
public static final Supplier<IForgeRegistry<com.mojang.serialization.Codec<? extends IGlobalLootModifier>>> GLOBAL_LOOT_MODIFIER_SERIALIZERS -
BIOME_MODIFIER_SERIALIZERS
public static final Supplier<IForgeRegistry<com.mojang.serialization.Codec<? extends BiomeModifier>>> BIOME_MODIFIER_SERIALIZERS -
STRUCTURE_MODIFIER_SERIALIZERS
public static final Supplier<IForgeRegistry<com.mojang.serialization.Codec<? extends StructureModifier>>> STRUCTURE_MODIFIER_SERIALIZERS -
FLUID_TYPES
-
HOLDER_SET_TYPES
-
DISPLAY_CONTEXTS
-
CONDITION_SERIALIZERS
public static final Supplier<IForgeRegistry<com.mojang.serialization.Codec<? extends ICondition>>> CONDITION_SERIALIZERS -
INGREDIENT_SERIALIZERS
-
-
Constructor Details
-
ForgeRegistries
public ForgeRegistries()
-
-
Method Details
-
active
-
registry
private static final <T> Supplier<IForgeRegistry<T>> registry(ResourceKey<Registry<T>> key, Supplier<RegistryBuilder<T>> factory) -
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.
-