Package net.minecraftforge.registries
Class RegistryManager
java.lang.Object
net.minecraftforge.registries.RegistryManager
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final RegistryManagerstatic final RegistryManagerprivate Map<ResourceLocation,ResourceLocation> private static final org.apache.logging.log4j.Loggerprivate final Stringprivate Set<ResourceLocation>(package private) com.google.common.collect.BiMap<ResourceLocation,ForgeRegistry<?>> private Map<ResourceLocation,? extends IForgeRegistry<?>> private Set<ResourceLocation>static final RegistryManagerprivate static Set<ResourceLocation>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate voidaddLegacyName(ResourceLocation legacyName, ResourceLocation name) voidclean()(package private) <V> ForgeRegistry<V>createRegistry(ResourceLocation name, RegistryBuilder<V> builder) getName()<V> ResourceLocationgetName(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> voidinjectForgeRegistry(ForgeRegistry<V> forgeReg, Registry<? extends Registry<?>> rootRegistry) (package private) booleanstatic void(package private) static <V> voidregisterToRootRegistry(ForgeRegistry<V> forgeReg) takeSnapshot(boolean savingToDisc) <V> ResourceLocationupdateLegacyName(ResourceLocation legacyName) 
- 
Field Details- 
LOGGERprivate static final org.apache.logging.log4j.Logger LOGGER
- 
ACTIVE
- 
VANILLA
- 
FROZEN
- 
vanillaRegistryKeys
- 
registriescom.google.common.collect.BiMap<ResourceLocation,ForgeRegistry<?>> registries
- 
registryView
- 
persisted
- 
synced
- 
legacyNames
- 
name
 
- 
- 
Constructor Details- 
RegistryManagerRegistryManager()
- 
RegistryManager
 
- 
- 
Method Details- 
getName
- 
isStagingboolean isStaging()
- 
getRegistry
- 
getRegistry
- 
getName
- 
getRegistries
- 
getVanillaRegistryKeys
- 
updateLegacyName
- 
getRegistry
- 
createRegistry
- 
registerToRootRegistry
- 
injectForgeRegistryprivate static <V> void injectForgeRegistry(ForgeRegistry<V> forgeReg, Registry<? extends Registry<?>> rootRegistry) 
- 
postNewRegistryEventpublic static void postNewRegistryEvent()
- 
addLegacyName
- 
takeSnapshot
- 
clean@Internal public void clean()
- 
getRegistryNamesForSyncToClient
 
-