Uses of Class
net.minecraftforge.registries.RegistryBuilder
-
Uses of RegistryBuilder in net.minecraftforge.registries
Modifier and TypeFieldDescriptionprivate Supplier<RegistryBuilder<T>>
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()
RegistryBuilder.disableOverrides()
RegistryBuilder.disableSaving()
RegistryBuilder.disableSync()
RegistryBuilder.dummy(IForgeRegistry.DummyFactory<T> factory)
(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)
Modifier and TypeMethodDescription(package private) <V extends IForgeRegistryEntry<V>>
ForgeRegistry<V>RegistryManager.createRegistry(ResourceLocation name, RegistryBuilder<V> builder)
Modifier and TypeMethodDescriptionDeferredRegister.makeRegistry(String name, Supplier<RegistryBuilder<T>> sup)
For custom registries only, fills theDeferredRegister.registryFactory
to be called later seeDeferredRegister.register(IEventBus)
CallssetName(net.minecraft.resources.ResourceLocation)
andsetType(java.lang.Class<T>)
automatically.ModifierConstructorDescription(package private)
ForgeRegistry(RegistryManager stage, ResourceLocation name, RegistryBuilder<V> builder)