Uses of Class
net.minecraftforge.registries.RegistryBuilder
-
Uses of RegistryBuilder in net.minecraftforge.registries
Modifier and TypeFieldDescriptionprivate final RegistryBuilder<V>
ForgeRegistry.builder
private final RegistryBuilder<V>
NewRegistryEvent.RegistryData.builder
The field for thebuilder
record component.Modifier and TypeFieldDescriptionprivate @Nullable Supplier<RegistryBuilder<?>>
DeferredRegister.registryFactory
Modifier and TypeMethodDescriptionRegistryBuilder.add
(IForgeRegistry.AddCallback<T> add) RegistryBuilder.add
(IForgeRegistry.BakeCallback<T> bake) RegistryBuilder.add
(IForgeRegistry.ClearCallback<T> clear) RegistryBuilder.add
(IForgeRegistry.CreateCallback<T> create) RegistryBuilder.add
(IForgeRegistry.ValidateCallback<T> validate) RegistryBuilder.addCallback
(Object inst) RegistryBuilder.allowModification()
NewRegistryEvent.RegistryData.builder()
Returns the value of thebuilder
record component.RegistryBuilder.disableOverrides()
RegistryBuilder.disableSaving()
RegistryBuilder.disableSync()
Prevents the registry from being synced to clients.RegistryBuilder.dummy
(IForgeRegistry.DummyFactory<T> factory) (package private) static RegistryBuilder<com.mojang.serialization.Codec<? extends BiomeModifier>>
GameData.getBiomeModifierSerializersRegistryBuilder()
(package private) RegistryBuilder<V>
ForgeRegistry.getBuilder()
(package private) static RegistryBuilder<EntityDataSerializer<?>>
GameData.getDataSerializersRegistryBuilder()
(package private) static RegistryBuilder<FluidType>
GameData.getFluidTypeRegistryBuilder()
(package private) static RegistryBuilder<com.mojang.serialization.Codec<? extends IGlobalLootModifier>>
GameData.getGLMSerializersRegistryBuilder()
(package private) static RegistryBuilder<HolderSetType>
GameData.getHolderSetTypeRegistryBuilder()
(package private) static RegistryBuilder<com.mojang.serialization.Codec<? extends StructureModifier>>
RegistryBuilder.hasTags()
Enables tags for this registry if not already.(package private) RegistryBuilder<T>
RegistryBuilder.hasWrapper()
(package private) RegistryBuilder<T>
RegistryBuilder.intrusiveHolderCallback
(Function<T, Holder.Reference<T>> intrusiveHolderCallback) RegistryBuilder.legacyName
(String name) RegistryBuilder.legacyName
(ResourceLocation name) private static <T> RegistryBuilder<T>
GameData.makeRegistry
(ResourceKey<? extends Registry<T>> key) private static <T> RegistryBuilder<T>
GameData.makeRegistry
(ResourceKey<? extends Registry<T>> key, int min, int max) private static <T> RegistryBuilder<T>
GameData.makeRegistry
(ResourceKey<? extends Registry<T>> key, String _default) RegistryBuilder.missing
(IForgeRegistry.MissingFactory<T> missing) RegistryBuilder.onAdd
(IForgeRegistry.AddCallback<T> add) RegistryBuilder.onBake
(IForgeRegistry.BakeCallback<T> bake) RegistryBuilder.onClear
(IForgeRegistry.ClearCallback<T> clear) RegistryBuilder.onCreate
(IForgeRegistry.CreateCallback<T> create) RegistryBuilder.onValidate
(IForgeRegistry.ValidateCallback<T> validate) RegistryBuilder.set
(IForgeRegistry.DummyFactory<T> factory) RegistryBuilder.set
(IForgeRegistry.MissingFactory<T> missing) RegistryBuilder.setDefaultKey
(ResourceLocation key) RegistryBuilder.setIDRange
(int min, int max) RegistryBuilder.setMaxID
(int max) RegistryBuilder.setName
(ResourceLocation name) 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.(package private) <V> ForgeRegistry<V>
RegistryManager.createRegistry
(ResourceLocation name, RegistryBuilder<V> builder) Modifier and TypeMethodDescriptionprivate <T> void
NewRegistryEvent.buildRegistry
(Map<RegistryBuilder<?>, IForgeRegistry<?>> builtRegistries, NewRegistryEvent.RegistryData<T> data) 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) ModifierConstructorDescription(package private)
ForgeRegistry
(RegistryManager stage, ResourceLocation name, RegistryBuilder<V> builder) private
RegistryData
(RegistryBuilder<V> builder, NewRegistryEvent.RegistryHolder<V> registryHolder, Consumer<IForgeRegistry<V>> onFill) Creates an instance of aRegistryData
record class.