Uses of Class
net.neoforged.neoforge.registries.RegistryBuilder
-
Uses of RegistryBuilder in net.neoforged.neoforge.registries
Modifier and TypeMethodDescriptionRegistryBuilder.callback
(RegistryCallback<T> callback) RegistryBuilder.defaultKey
(ResourceKey<T> key) RegistryBuilder.defaultKey
(ResourceLocation key) RegistryBuilder.disableRegistrationCheck()
Disables the safeguard that ensures this registry is registered toNewRegistryEvent
in due time.RegistryBuilder.maxId
(int maxId) Sets the highest numerical id that an entry in this registry is allowed to use.RegistryBuilder.onAdd
(AddCallback<T> callback) RegistryBuilder.onBake
(BakeCallback<T> callback) RegistryBuilder.onClear
(ClearCallback<T> callback) RegistryBuilder.sync
(boolean sync) Sets whether this registry should have its numerical IDs synced to clients.Modifier and TypeMethodDescription<T> Registry
<T> NewRegistryEvent.create
(RegistryBuilder<T> builder) Creates a registry using thebuilder
and registers it.Modifier and TypeMethodDescriptionDeferredRegister.makeRegistry
(Consumer<RegistryBuilder<T>> consumer) This method is used to configure a custom modded registry.DeferredRegister.makeRegistry
(ResourceLocation registryName, Consumer<RegistryBuilder<T>> consumer)