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 extends IForgeRegistryEntry<V>>
Callback fired when objects are added to the registry.
|
static interface |
IForgeRegistry.ClearCallback<V extends IForgeRegistryEntry<V>>
Callback fired when the registry is cleared.
|
static interface |
IForgeRegistry.CreateCallback<V extends IForgeRegistryEntry<V>>
Callback fired when a registry instance is created.
|
static interface |
IForgeRegistry.DummyFactory<V extends IForgeRegistryEntry<V>>
Factory for creating dummy entries, allowing worlds to be loaded and keep the missing block references.
|
static interface |
IForgeRegistry.MissingFactory<V extends IForgeRegistryEntry<V>> |
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) |
void |
registerAll(V... values) |
java.lang.Class<V> getRegistrySuperType()
void register(V value)
void registerAll(V... values)
boolean containsKey(ResourceLocation key)
boolean containsValue(V value)
@Nullable V getValue(ResourceLocation key)
@Nullable ResourceLocation getKey(V value)
@Nonnull java.util.Set<ResourceLocation> getKeys()
@Nonnull java.util.List<V> getValues()
@Nonnull 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