public class RegistryBuilder<T extends IForgeRegistryEntry<T>>
extends java.lang.Object
Constructor and Description |
---|
RegistryBuilder() |
Modifier and Type | Method and Description |
---|---|
RegistryBuilder<T> |
add(IForgeRegistry.AddCallback<T> add) |
RegistryBuilder<T> |
add(IForgeRegistry.ClearCallback<T> clear) |
RegistryBuilder<T> |
add(IForgeRegistry.CreateCallback<T> create) |
RegistryBuilder<T> |
addCallback(java.lang.Object inst) |
RegistryBuilder<T> |
allowModification() |
IForgeRegistry<T> |
create() |
RegistryBuilder<T> |
disableOverrides() |
RegistryBuilder<T> |
disableSaving() |
RegistryBuilder<T> |
set(IForgeRegistry.DummyFactory<T> factory) |
RegistryBuilder<T> |
set(IForgeRegistry.MissingFactory<T> missing) |
RegistryBuilder<T> |
setDefaultKey(ResourceLocation key) |
RegistryBuilder<T> |
setIDRange(int min,
int max) |
RegistryBuilder<T> |
setMaxID(int max) |
RegistryBuilder<T> |
setName(ResourceLocation name) |
RegistryBuilder<T> |
setType(java.lang.Class<T> type) |
public RegistryBuilder<T> setName(ResourceLocation name)
public RegistryBuilder<T> setType(java.lang.Class<T> type)
public RegistryBuilder<T> setIDRange(int min, int max)
public RegistryBuilder<T> setMaxID(int max)
public RegistryBuilder<T> setDefaultKey(ResourceLocation key)
public RegistryBuilder<T> addCallback(java.lang.Object inst)
public RegistryBuilder<T> add(IForgeRegistry.AddCallback<T> add)
public RegistryBuilder<T> add(IForgeRegistry.ClearCallback<T> clear)
public RegistryBuilder<T> add(IForgeRegistry.CreateCallback<T> create)
public RegistryBuilder<T> set(IForgeRegistry.DummyFactory<T> factory)
public RegistryBuilder<T> set(IForgeRegistry.MissingFactory<T> missing)
public RegistryBuilder<T> disableSaving()
public RegistryBuilder<T> disableOverrides()
public RegistryBuilder<T> allowModification()
public IForgeRegistry<T> create()