public class FMLControlledNamespacedRegistry<I> extends RegistryNamespaced
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG |
field_148758_b, underlyingIntegerMap
registryObjects
Modifier and Type | Method and Description |
---|---|
void |
addObject(int id,
java.lang.String name,
java.lang.Object thing)
Deprecated.
register through
GameRegistry instead. |
boolean |
contains(java.lang.String itemName)
Deprecated.
use containsKey instead
|
boolean |
containsKey(java.lang.String name)
Determine if the registry has an entry for the specified name.
|
I |
get(int id)
Deprecated.
use getObjectById instead
|
I |
get(java.lang.String name)
Deprecated.
use getObject instead
|
java.util.Map<java.lang.String,java.lang.String> |
getAliases() |
I |
getDefaultValue() |
RegistryDelegate<I> |
getDelegate(I thing,
java.lang.Class<I> clazz) |
int |
getId(I thing)
Get the id for the specified object.
|
int |
getId(java.lang.String itemName)
Get the id for the specified object.
|
I |
getObject(java.lang.String name)
Fetch the object identified by the specified name or the default object.
|
I |
getObjectById(int id)
Fetch the object identified by the specified id or the default object.
|
I |
getRaw(int id)
Get the object identified by the specified id.
|
I |
getRaw(java.lang.String name)
Get the object identified by the specified name.
|
java.util.Iterator<I> |
iterator() |
void |
putObject(java.lang.Object objName,
java.lang.Object obj)
Deprecated.
register through
GameRegistry instead. |
void |
serializeInto(java.util.Map<java.lang.String,java.lang.Integer> idMapping) |
void |
serializeSubstitutions(java.util.Set<java.lang.String> blockSubs) |
java.lang.Iterable<I> |
typeSafeIterable() |
containsId, containsKey, createUnderlyingMap, ensureNamespaced, getIDForObject, getNameForObject, getObject
getKeys
@Deprecated public void addObject(int id, java.lang.String name, java.lang.Object thing)
GameRegistry
instead.addObject
in class RegistryNamespaced
@Deprecated public void putObject(java.lang.Object objName, java.lang.Object obj)
GameRegistry
instead.putObject
in interface IRegistry
putObject
in class RegistrySimple
public I getObject(java.lang.String name)
getObject
in class RegistryNamespaced
name
- Unique name identifying the object.public I getObjectById(int id)
getObjectById
in class RegistryNamespaced
id
- ID identifying the object.@Deprecated public I get(int id)
@Deprecated public I get(java.lang.String name)
public int getId(I thing)
thing
- Block/Item object.public I getRaw(int id)
id
- Block/Item id.public I getRaw(java.lang.String name)
name
- Block/Item name.public boolean containsKey(java.lang.String name)
containsKey
in class RegistryNamespaced
name
- Object name to check.public int getId(java.lang.String itemName)
itemName
- Block/Item registry name.@Deprecated public boolean contains(java.lang.String itemName)
public java.lang.Iterable<I> typeSafeIterable()
public void serializeInto(java.util.Map<java.lang.String,java.lang.Integer> idMapping)
public java.util.Map<java.lang.String,java.lang.String> getAliases()
public I getDefaultValue()
public RegistryDelegate<I> getDelegate(I thing, java.lang.Class<I> clazz)
public void serializeSubstitutions(java.util.Set<java.lang.String> blockSubs)
public java.util.Iterator<I> iterator()
iterator
in interface java.lang.Iterable
iterator
in class RegistryNamespaced