Package net.minecraftforge.registries
Class RegistryBuilder<T extends IForgeRegistryEntry<T>>
java.lang.Object
net.minecraftforge.registries.RegistryBuilder<T>
-
Field Summary
Modifier and TypeFieldDescriptionprivate List<IForgeRegistry.AddCallback<T>>
private boolean
private boolean
private List<IForgeRegistry.BakeCallback<T>>
private List<IForgeRegistry.ClearCallback<T>>
private List<IForgeRegistry.CreateCallback<T>>
private IForgeRegistry.DummyFactory<T>
private boolean
private Set<ResourceLocation>
private static final int
private int
private int
private IForgeRegistry.MissingFactory<T>
private ResourceLocation
private ResourceLocation
private boolean
private boolean
private String
private List<IForgeRegistry.ValidateCallback<T>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(IForgeRegistry.AddCallback<T> add) add
(IForgeRegistry.BakeCallback<T> bake) add
(IForgeRegistry.ClearCallback<T> clear) add
(IForgeRegistry.CreateCallback<T> create) add
(IForgeRegistry.ValidateCallback<T> validate) addCallback
(Object inst) create()
dummy
(IForgeRegistry.DummyFactory<T> factory) getAdd()
boolean
boolean
getBake()
getClear()
int
getMaxId()
int
getMinId()
boolean
boolean
getSync()
getType()
(package private) RegistryBuilder<T>
legacyName
(String name) legacyName
(ResourceLocation name) missing
(IForgeRegistry.MissingFactory<T> missing) onAdd
(IForgeRegistry.AddCallback<T> add) onBake
(IForgeRegistry.BakeCallback<T> bake) onClear
(IForgeRegistry.ClearCallback<T> clear) onCreate
(IForgeRegistry.CreateCallback<T> create) onValidate
(IForgeRegistry.ValidateCallback<T> validate) set
(IForgeRegistry.DummyFactory<T> factory) set
(IForgeRegistry.MissingFactory<T> missing) setIDRange
(int min, int max) setMaxID
(int max) setName
(ResourceLocation name)
-
Field Details
-
MAX_ID
private static final int MAX_ID- See Also:
-
registryName
-
registryType
-
optionalDefaultKey
-
minId
private int minId -
maxId
private int maxId -
addCallback
-
clearCallback
-
createCallback
-
validateCallback
-
bakeCallback
-
saveToDisc
private boolean saveToDisc -
sync
private boolean sync -
allowOverrides
private boolean allowOverrides -
allowModifications
private boolean allowModifications -
hasWrapper
private boolean hasWrapper -
tagFolder
-
dummyFactory
-
missingFactory
-
legacyNames
-
-
Constructor Details
-
RegistryBuilder
public RegistryBuilder()
-
-
Method Details
-
setName
-
setType
-
setIDRange
-
setMaxID
-
setDefaultKey
-
addCallback
-
add
-
onAdd
-
add
-
onClear
-
add
-
onCreate
-
add
-
onValidate
-
add
-
onBake
-
set
-
dummy
-
set
-
missing
-
disableSaving
-
disableSync
-
disableOverrides
-
allowModification
-
hasWrapper
RegistryBuilder<T> hasWrapper() -
tagFolder
-
legacyName
-
legacyName
-
create
-
getAdd
-
getClear
-
getCreate
-
getValidate
-
getBake
-
getType
-
getDefault
-
getMinId
public int getMinId() -
getMaxId
public int getMaxId() -
getAllowOverrides
public boolean getAllowOverrides() -
getAllowModifications
public boolean getAllowModifications() -
getTagFolder
-
getDummyFactory
-
getMissingFactory
-
getSaveToDisc
public boolean getSaveToDisc() -
getSync
public boolean getSync() -
getLegacyNames
-