public class FMLControlledNamespacedRegistry<I> extends RegistryNamespaced
field_148758_b, underlyingIntegerMapregistryObjects| 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() |
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.
|
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) |
java.lang.Iterable<I> |
typeSafeIterable() |
containsId, containsKey, createUnderlyingMap, ensureNamespaced, getIDForObject, getNameForObject, getObject, iteratorgetKeys@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 IRegistryputObject in class RegistrySimplepublic I getObject(java.lang.String name)
getObject in class RegistryNamespacedname - Unique name identifying the object.public I getObjectById(int id)
getObjectById in class RegistryNamespacedid - 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 RegistryNamespacedname - 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()