public class RegistryManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static RegistryManager |
ACTIVE |
static RegistryManager |
FROZEN |
static RegistryManager |
VANILLA |
Constructor and Description |
---|
RegistryManager(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
clean() |
java.lang.String |
getName() |
<V extends IForgeRegistryEntry<V>> |
getName(IForgeRegistry<V> reg) |
<V extends IForgeRegistryEntry<V>> |
getRegistry(java.lang.Class<V> cls) |
<V extends IForgeRegistryEntry<V>> |
getRegistry(ResourceLocation key) |
<V extends IForgeRegistryEntry<V>> |
getRegistry(ResourceLocation key,
RegistryManager other) |
<V extends IForgeRegistryEntry<V>> |
getSuperType(ResourceLocation key) |
java.util.Map<ResourceLocation,ForgeRegistry.Snapshot> |
takeSnapshot(boolean savingToDisc) |
public static final RegistryManager ACTIVE
public static final RegistryManager VANILLA
public static final RegistryManager FROZEN
public java.lang.String getName()
public <V extends IForgeRegistryEntry<V>> java.lang.Class<V> getSuperType(ResourceLocation key)
public <V extends IForgeRegistryEntry<V>> ForgeRegistry<V> getRegistry(ResourceLocation key)
public <V extends IForgeRegistryEntry<V>> IForgeRegistry<V> getRegistry(java.lang.Class<V> cls)
public <V extends IForgeRegistryEntry<V>> ResourceLocation getName(IForgeRegistry<V> reg)
public <V extends IForgeRegistryEntry<V>> ForgeRegistry<V> getRegistry(ResourceLocation key, RegistryManager other)
public java.util.Map<ResourceLocation,ForgeRegistry.Snapshot> takeSnapshot(boolean savingToDisc)
public void clean()