V
- The top level type for the registrypublic interface IForgeRegistry<V extends IForgeRegistryEntry<V>>
extends java.lang.Iterable<V>
Modifier and Type | Interface and Description |
---|---|
static interface |
IForgeRegistry.AddCallback<V>
Callback fired when objects are added to the registry.
|
static interface |
IForgeRegistry.ClearCallback<V>
Callback fired when the registry is cleared.
|
static interface |
IForgeRegistry.CreateCallback<V>
Callback fired when a registry instance is created.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(ResourceLocation key) |
boolean |
containsValue(V value) |
java.util.Set<java.util.Map.Entry<ResourceLocation,V>> |
getEntries() |
ResourceLocation |
getKey(V value) |
java.util.Set<ResourceLocation> |
getKeys() |
java.lang.Class<V> |
getRegistrySuperType() |
<T> T |
getSlaveMap(ResourceLocation slaveMapName,
java.lang.Class<T> type)
Retrieve the slave map of type T from the registry.
|
V |
getValue(ResourceLocation key) |
java.util.List<V> |
getValues() |
void |
register(V value) |
java.lang.Class<V> getRegistrySuperType()
void register(V value)
boolean containsKey(ResourceLocation key)
boolean containsValue(V value)
V getValue(ResourceLocation key)
ResourceLocation getKey(V value)
java.util.Set<ResourceLocation> getKeys()
java.util.List<V> getValues()
java.util.Set<java.util.Map.Entry<ResourceLocation,V>> getEntries()
<T> T getSlaveMap(ResourceLocation slaveMapName, java.lang.Class<T> type)
T
- Type to returnslaveMapName
- The name of the slavemaptype
- The type