public class FMLControlledNamespacedRegistry<I> extends RegistryNamespacedDefaultedByKey
field_148758_b, underlyingIntegerMap
registryObjects
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.String itemName)
Deprecated.
use containsKey instead
|
boolean |
containsKey(java.lang.Object 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
|
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.Object 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 |
register(int id,
java.lang.Object name,
java.lang.Object thing)
Deprecated.
register through
GameRegistry instead. |
void |
serializeAliases(java.util.Map<java.lang.String,java.lang.String> map) |
void |
serializeInto(java.util.Map<java.lang.String,java.lang.Integer> idMapping) |
void |
serializeSubstitutions(java.util.Set<java.lang.String> set) |
java.lang.Iterable<I> |
typeSafeIterable() |
void |
validateKey() |
createUnderlyingMap, getIDForObject, getNameForObject, iterator
getKeys
@Deprecated public void register(int id, java.lang.Object name, java.lang.Object thing)
GameRegistry
instead.register
in class RegistryNamespacedDefaultedByKey
@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.Object name)
getObject
in interface IRegistry
getObject
in class RegistryNamespacedDefaultedByKey
name
- Unique name identifying the object.public I getObjectById(int id)
getObjectById
in class RegistryNamespacedDefaultedByKey
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.Object 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 void serializeAliases(java.util.Map<java.lang.String,java.lang.String> map)
public void serializeSubstitutions(java.util.Set<java.lang.String> set)
public I getDefaultValue()
public RegistryDelegate<I> getDelegate(I thing, java.lang.Class<I> clazz)
public void validateKey()
validateKey
in class RegistryNamespacedDefaultedByKey