Package net.minecraftforge.registries
Class RegistryManager
java.lang.Object
net.minecraftforge.registries.RegistryManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic RegistryManagerstatic RegistryManagerprivate Map<ResourceLocation,ResourceLocation>private static org.apache.logging.log4j.Loggerprivate Stringprivate Set<ResourceLocation>(package private) com.google.common.collect.BiMap<ResourceLocation,ForgeRegistry<? extends IForgeRegistryEntry<?>>>private com.google.common.collect.BiMap<Class<? extends IForgeRegistryEntry<?>>,ResourceLocation>private Set<ResourceLocation>static RegistryManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddLegacyName(ResourceLocation legacyName, ResourceLocation name)voidclean()(package private) <V extends IForgeRegistryEntry<V>>
ForgeRegistry<V>createRegistry(ResourceLocation name, RegistryBuilder<V> builder)private voidfindSuperTypes(Class<?> type, Set<Class<?>> types)static List<org.apache.commons.lang3.tuple.Pair<String,FMLHandshakeMessages.S2CRegistry>>generateRegistryPackets(boolean isLocal)getName()<V extends IForgeRegistryEntry<V>>
ResourceLocationgetName(IForgeRegistry<V> reg)<V extends IForgeRegistryEntry<V>>
IForgeRegistry<V>getRegistry(Class<? super V> cls)<V extends IForgeRegistryEntry<V>>
ForgeRegistry<V>getRegistry(ResourceKey<? extends Registry<V>> key)<V extends IForgeRegistryEntry<V>>
ForgeRegistry<V>getRegistry(ResourceLocation key)<V extends IForgeRegistryEntry<V>>
ForgeRegistry<V>getRegistry(ResourceLocation key, RegistryManager other)static List<ResourceLocation><V extends IForgeRegistryEntry<V>>
Class<V>getSuperType(ResourceLocation key)takeSnapshot(boolean savingToDisc)<V extends IForgeRegistryEntry<V>>
ResourceLocationupdateLegacyName(ResourceLocation legacyName)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
ACTIVE
-
VANILLA
-
FROZEN
-
registries
com.google.common.collect.BiMap<ResourceLocation,ForgeRegistry<? extends IForgeRegistryEntry<?>>> registries -
superTypes
private com.google.common.collect.BiMap<Class<? extends IForgeRegistryEntry<?>>,ResourceLocation> superTypes -
persisted
-
synced
-
legacyNames
-
name
-
-
Constructor Details
-
RegistryManager
-
-
Method Details
-
getName
-
getSuperType
-
getRegistry
-
getRegistry
public <V extends IForgeRegistryEntry<V>> ForgeRegistry<V> getRegistry(ResourceKey<? extends Registry<V>> key) -
getRegistry
-
getName
-
updateLegacyName
public <V extends IForgeRegistryEntry<V>> ResourceLocation updateLegacyName(ResourceLocation legacyName) -
getRegistry
public <V extends IForgeRegistryEntry<V>> ForgeRegistry<V> getRegistry(ResourceLocation key, RegistryManager other) -
createRegistry
<V extends IForgeRegistryEntry<V>> ForgeRegistry<V> createRegistry(ResourceLocation name, RegistryBuilder<V> builder) -
addLegacyName
-
findSuperTypes
-
takeSnapshot
-
clean
public void clean() -
generateRegistryPackets
public static List<org.apache.commons.lang3.tuple.Pair<String,FMLHandshakeMessages.S2CRegistry>> generateRegistryPackets(boolean isLocal) -
getRegistryNamesForSyncToClient
-