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.dataPackRegistry
(com.mojang.serialization.Codec<T> codec) Register this registry as an unsynced datapack registry, which will cause data to be loaded from a datapack folder based on the registry's name.RegistryBuilder.dataPackRegistry
(com.mojang.serialization.Codec<T> codec, com.mojang.serialization.Codec<T> networkCodec) Register this registry as a datapack registry, which will cause data to be loaded from a datapack folder based on the registry's name.RegistryBuilder.disableOverrides()
RegistryBuilder.disableSaving()
RegistryBuilder.disableSync()
Prevents the registry from being synced to clients.RegistryBuilder.dummy
(IForgeRegistry.DummyFactory<T> factory) (package private) RegistryBuilder<V>
ForgeRegistry.getBuilder()
(package private) static RegistryBuilder<DataSerializerEntry>
GameData.getDataSerializersRegistryBuilder()
(package private) static RegistryBuilder<GlobalLootModifierSerializer<?>>
GameData.getGLMSerializersRegistryBuilder()
(package private) static RegistryBuilder<ForgeWorldPreset>
GameData.getWorldTypesRegistryBuilder()
RegistryBuilder.hasTags()
Enables tags for this registry if not already.(package private) RegistryBuilder<T>
RegistryBuilder.hasWrapper()
RegistryBuilder.legacyName
(String name) RegistryBuilder.legacyName
(ResourceLocation name) private static <T extends IForgeRegistryEntry<T>>
RegistryBuilder<T>GameData.makeRegistry
(ResourceKey<? extends Registry<T>> key, Class<T> type) private static <T extends IForgeRegistryEntry<T>>
RegistryBuilder<T>GameData.makeRegistry
(ResourceKey<? extends Registry<T>> key, Class<T> type, int min, int max) private static <T extends IForgeRegistryEntry<T>>
RegistryBuilder<T>GameData.makeRegistry
(ResourceKey<? extends Registry<T>> key, Class<T> type, 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) (package private) RegistryBuilder<T>
RegistryBuilder.vanillaHolder
(Function<T, Holder.Reference<T>> func) Modifier and TypeMethodDescription<V extends IForgeRegistryEntry<V>>
Supplier<IForgeRegistry<V>>NewRegistryEvent.create
(RegistryBuilder<V> builder) Adds a registry builder to be created.<V extends IForgeRegistryEntry<V>>
Supplier<IForgeRegistry<V>>NewRegistryEvent.create
(RegistryBuilder<V> builder, @Nullable Consumer<IForgeRegistry<V>> onFill) Adds a registry builder to be created.(package private) <V extends IForgeRegistryEntry<V>>
ForgeRegistry<V>RegistryManager.createRegistry
(ResourceLocation name, RegistryBuilder<V> builder) Modifier and TypeMethodDescription<E extends IForgeRegistryEntry<E>>
Supplier<IForgeRegistry<E>>DeferredRegister.makeRegistry
(Class<E> base, Supplier<RegistryBuilder<E>> sup) Only used for custom registries to fill the forge registry held in this DeferredRegister.<E extends IForgeRegistryEntry<E>>
Supplier<IForgeRegistry<E>>DeferredRegister.makeRegistry
(String name, Supplier<RegistryBuilder<E>> sup) Deprecated, for removal: This API element is subject to removal in a future version.private <E extends IForgeRegistryEntry<E>>
Supplier<IForgeRegistry<E>>DeferredRegister.makeRegistry
(ResourceLocation registryName, Class<E> superType, Supplier<RegistryBuilder<E>> 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.
DeferredRegister.create(ResourceLocation, String)
andDeferredRegister.makeRegistry(Class, Supplier)
instead