Package net.minecraftforge.registries
Class RegistryManager
java.lang.Object
net.minecraftforge.registries.RegistryManager
-
Field Summary
Modifier and TypeFieldDescriptionstatic final RegistryManager
static final RegistryManager
private Map
<ResourceLocation, ResourceLocation> private static final org.apache.logging.log4j.Logger
private final String
private Set
<ResourceLocation> (package private) com.google.common.collect.BiMap
<ResourceLocation, ForgeRegistry<?>> private Map
<ResourceLocation, ? extends IForgeRegistry<?>> private Set
<ResourceLocation> static final RegistryManager
private static Set
<ResourceLocation> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
addLegacyName
(ResourceLocation legacyName, ResourceLocation name) void
clean()
(package private) <V> ForgeRegistry
<V> createRegistry
(ResourceLocation name, RegistryBuilder<V> builder) getName()
<V> ResourceLocation
getName
(IForgeRegistry<V> reg) Map
<ResourceLocation, ? extends IForgeRegistry<?>> <V> ForgeRegistry
<V> getRegistry
(ResourceKey<? extends Registry<V>> key) <V> ForgeRegistry
<V> <V> ForgeRegistry
<V> getRegistry
(ResourceLocation key, RegistryManager other) static List
<ResourceLocation> static Set
<ResourceLocation> private static <V> void
injectForgeRegistry
(ForgeRegistry<V> forgeReg, Registry<? extends Registry<?>> rootRegistry) (package private) boolean
static void
(package private) static <V> void
registerToRootRegistry
(ForgeRegistry<V> forgeReg) takeSnapshot
(boolean savingToDisc) <V> ResourceLocation
updateLegacyName
(ResourceLocation legacyName)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
ACTIVE
-
VANILLA
-
FROZEN
-
vanillaRegistryKeys
-
registries
com.google.common.collect.BiMap<ResourceLocation,ForgeRegistry<?>> registries -
registryView
-
persisted
-
synced
-
legacyNames
-
name
-
-
Constructor Details
-
RegistryManager
RegistryManager() -
RegistryManager
-
-
Method Details
-
getName
-
isStaging
boolean isStaging() -
getRegistry
-
getRegistry
-
getName
-
getRegistries
-
getVanillaRegistryKeys
-
updateLegacyName
-
getRegistry
-
createRegistry
-
registerToRootRegistry
-
injectForgeRegistry
private static <V> void injectForgeRegistry(ForgeRegistry<V> forgeReg, Registry<? extends Registry<?>> rootRegistry) -
postNewRegistryEvent
public static void postNewRegistryEvent() -
addLegacyName
-
takeSnapshot
-
clean
@Internal public void clean() -
getRegistryNamesForSyncToClient
-