Uses of Interface
net.minecraftforge.registries.IForgeRegistry
Package
Description
-
Uses of IForgeRegistry in net.minecraft.world.item.alchemy
ModifierConstructorDescriptionMix
(IForgeRegistry<T> registry, T p_43536_, Ingredient p_43537_, T p_43538_) -
Uses of IForgeRegistry in net.minecraftforge.common
Modifier and TypeMethodDescriptionprivate static <T> void
ForgeMod.addAlias
(IForgeRegistry<T> registry, ResourceLocation from, ResourceLocation to) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of IForgeRegistry in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptiondefault <T> T
IForgeFriendlyByteBuf.readRegistryIdUnsafe
(@NotNull IForgeRegistry<T> registry) Reads an integer value from the buffer, which will be interpreted as an registry-id in the given registry.default <T> void
IForgeFriendlyByteBuf.writeRegistryId
(@NotNull IForgeRegistry<T> registry, T entry) Writes a given registry-entry's integer id to the specified buffer in combination with writing the containing registry's id.default void
IForgeFriendlyByteBuf.writeRegistryIdUnsafe
(@NotNull IForgeRegistry<?> registry, @NotNull ResourceLocation entryKey) Writes the given entries integer id to the buffer.default <T> void
IForgeFriendlyByteBuf.writeRegistryIdUnsafe
(@NotNull IForgeRegistry<T> registry, T entry) Writes the given entries integer id to the buffer. -
Uses of IForgeRegistry in net.minecraftforge.debug
Modifier and TypeFieldDescriptionprivate static final Supplier<IForgeRegistry<DeferredRegistryTest.Custom>>
DeferredRegistryTest.CUSTOM_REG
-
Uses of IForgeRegistry in net.minecraftforge.registries
Modifier and TypeInterfaceDescriptioninterface
interface
Modifier and TypeClassDescriptionclass
Internal - use the publicIForgeRegistry
andForgeRegistries
APIs to get the dataModifier and TypeFieldDescriptionstatic final IForgeRegistry<Activity>
ForgeRegistries.ACTIVITIES
static final IForgeRegistry<Attribute>
ForgeRegistries.ATTRIBUTES
static final IForgeRegistry<Biome>
ForgeRegistries.BIOMES
static final IForgeRegistry<BlockEntityType<?>>
ForgeRegistries.BLOCK_ENTITY_TYPES
static final IForgeRegistry<BlockStateProviderType<?>>
ForgeRegistries.BLOCK_STATE_PROVIDER_TYPES
static final IForgeRegistry<Block>
ForgeRegistries.BLOCKS
static final IForgeRegistry<ChunkStatus>
ForgeRegistries.CHUNK_STATUS
static final IForgeRegistry<ArgumentTypeInfo<?,
?>> ForgeRegistries.COMMAND_ARGUMENT_TYPES
static final IForgeRegistry<Enchantment>
ForgeRegistries.ENCHANTMENTS
static final IForgeRegistry<EntityType<?>>
ForgeRegistries.ENTITY_TYPES
static final IForgeRegistry<Feature<?>>
ForgeRegistries.FEATURES
static final IForgeRegistry<Fluid>
ForgeRegistries.FLUIDS
static final IForgeRegistry<FoliagePlacerType<?>>
ForgeRegistries.FOLIAGE_PLACER_TYPES
static final IForgeRegistry<Item>
ForgeRegistries.ITEMS
static final IForgeRegistry<MemoryModuleType<?>>
ForgeRegistries.MEMORY_MODULE_TYPES
static final IForgeRegistry<MenuType<?>>
ForgeRegistries.MENU_TYPES
static final IForgeRegistry<MobEffect>
ForgeRegistries.MOB_EFFECTS
static final IForgeRegistry<PaintingVariant>
ForgeRegistries.PAINTING_VARIANTS
static final IForgeRegistry<ParticleType<?>>
ForgeRegistries.PARTICLE_TYPES
static final IForgeRegistry<PoiType>
ForgeRegistries.POI_TYPES
private final IForgeRegistry<T>
MissingMappingsEvent.Mapping.pool
static final IForgeRegistry<Potion>
ForgeRegistries.POTIONS
static final IForgeRegistry<RecipeSerializer<?>>
ForgeRegistries.RECIPE_SERIALIZERS
static final IForgeRegistry<RecipeType<?>>
ForgeRegistries.RECIPE_TYPES
private IForgeRegistry<V>
DeferredRegister.RegistryHolder.registry
private final IForgeRegistry<T>
MissingMappingsEvent.Mapping.registry
private final IForgeRegistry<?>
MissingMappingsEvent.registry
(package private) IForgeRegistry<V>
NewRegistryEvent.RegistryHolder.registry
static final IForgeRegistry<Schedule>
ForgeRegistries.SCHEDULES
static final IForgeRegistry<SensorType<?>>
ForgeRegistries.SENSOR_TYPES
static final IForgeRegistry<SoundEvent>
ForgeRegistries.SOUND_EVENTS
static final IForgeRegistry<StatType<?>>
ForgeRegistries.STAT_TYPES
static final IForgeRegistry<TreeDecoratorType<?>>
ForgeRegistries.TREE_DECORATOR_TYPES
static final IForgeRegistry<VillagerProfession>
ForgeRegistries.VILLAGER_PROFESSIONS
static final IForgeRegistry<WorldCarver<?>>
ForgeRegistries.WORLD_CARVERS
Modifier and TypeFieldDescriptionstatic final Supplier<IForgeRegistry<com.mojang.serialization.Codec<? extends BiomeModifier>>>
ForgeRegistries.BIOME_MODIFIER_SERIALIZERS
CallingSupplier.get()
beforeNewRegistryEvent
is fired will result in a null registry returned.static final Supplier<IForgeRegistry<ItemDisplayContext>>
ForgeRegistries.DISPLAY_CONTEXTS
CallingSupplier.get()
beforeNewRegistryEvent
is fired will result in a null registry returned.static final Supplier<IForgeRegistry<EntityDataSerializer<?>>>
ForgeRegistries.ENTITY_DATA_SERIALIZERS
CallingSupplier.get()
beforeNewRegistryEvent
is fired will result in a null registry returned.static final Supplier<IForgeRegistry<FluidType>>
ForgeRegistries.FLUID_TYPES
CallingSupplier.get()
beforeNewRegistryEvent
is fired will result in a null registry returned.static final Supplier<IForgeRegistry<com.mojang.serialization.Codec<? extends IGlobalLootModifier>>>
ForgeRegistries.GLOBAL_LOOT_MODIFIER_SERIALIZERS
CallingSupplier.get()
beforeNewRegistryEvent
is fired will result in a null registry returned.static final Supplier<IForgeRegistry<HolderSetType>>
ForgeRegistries.HOLDER_SET_TYPES
CallingSupplier.get()
beforeNewRegistryEvent
is fired will result in a null registry returned.private final Consumer<IForgeRegistry<V>>
NewRegistryEvent.RegistryData.onFill
The field for theonFill
record component.static final Supplier<IForgeRegistry<com.mojang.serialization.Codec<? extends StructureModifier>>>
ForgeRegistries.STRUCTURE_MODIFIER_SERIALIZERS
CallingSupplier.get()
beforeNewRegistryEvent
is fired will result in a null registry returned.Modifier and TypeMethodDescription(package private) IForgeRegistry<T>
RegistryBuilder.create()
Modders: UseNewRegistryEvent.create(RegistryBuilder)
insteadDeferredRegister.RegistryHolder.get()
NewRegistryEvent.RegistryHolder.get()
<T> @Nullable IForgeRegistry<T>
RegisterEvent.getForgeRegistry()
MissingMappingsEvent.getRegistry()
MissingMappingsEvent.Mapping.getRegistry()
Modifier and TypeMethodDescription<V> Supplier<IForgeRegistry<V>>
NewRegistryEvent.create
(RegistryBuilder<V> builder) Adds a registry builder to be created.<V> Supplier<IForgeRegistry<V>>
NewRegistryEvent.create
(RegistryBuilder<V> builder, @Nullable Consumer<IForgeRegistry<V>> onFill) Adds a registry builder to be created.DeferredRegister.makeRegistry
(Supplier<RegistryBuilder<T>> sup) Only used for custom registries to fill the forge registry held in this DeferredRegister.private Supplier<IForgeRegistry<T>>
DeferredRegister.makeRegistry
(ResourceLocation registryName, Supplier<RegistryBuilder<T>> sup) NewRegistryEvent.RegistryData.onFill()
Returns the value of theonFill
record component.Modifier and TypeMethodDescriptionstatic <B> DeferredRegister<B>
DeferredRegister.create
(IForgeRegistry<B> reg, String modid) DeferredRegister factory for forge registries that exist before this DeferredRegister is created.static <T,
U extends T>
RegistryObject<U>RegistryObject.create
(ResourceLocation name, IForgeRegistry<T> registry) Factory for aRegistryObject
that stores the value of an object from the provided forge registry once it is ready.<V> ResourceLocation
RegistryManager.getName
(IForgeRegistry<V> reg) private void
DeferredRegister.onFill
(IForgeRegistry<?> registry) (package private) void
RegistryObject.updateReference
(IForgeRegistry<? extends T> registry) Modifier and TypeMethodDescriptionprivate <T> void
NewRegistryEvent.buildRegistry
(Map<RegistryBuilder<?>, IForgeRegistry<?>> builtRegistries, NewRegistryEvent.RegistryData<T> data) <V> Supplier<IForgeRegistry<V>>
NewRegistryEvent.create
(RegistryBuilder<V> builder, @Nullable Consumer<IForgeRegistry<V>> onFill) Adds a registry builder to be created.ModifierConstructorDescriptionprivate
DeferredRegister
(IForgeRegistry<T> reg, String modid) Mapping
(IForgeRegistry<T> registry, IForgeRegistry<T> pool, ResourceLocation key, int id) MissingMappingsEvent
(ResourceKey<? extends Registry<?>> key, IForgeRegistry<?> registry, Collection<MissingMappingsEvent.Mapping<?>> missed) private
RegistryObject
(ResourceLocation name, IForgeRegistry<?> registry) ModifierConstructorDescriptionprivate
RegistryData
(RegistryBuilder<V> builder, NewRegistryEvent.RegistryHolder<V> registryHolder, Consumer<IForgeRegistry<V>> onFill) Creates an instance of aRegistryData
record class.