类 RegistryManager
java.lang.Object
net.minecraftforge.registries.RegistryManager
-
字段概要
字段修饰符和类型字段说明static final RegistryManager
static final RegistryManager
private Map<ResourceLocation,
ResourceLocation> private static final org.apache.logging.log4j.Logger
private final String
private Set<ResourceLocation>
(专用程序包) com.google.common.collect.BiMap<ResourceLocation,
ForgeRegistry<?>> private Set<ResourceLocation>
static final RegistryManager
private static Set<ResourceLocation>
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private void
addLegacyName
(ResourceLocation legacyName, ResourceLocation name) void
clean()
(专用程序包) <V> ForgeRegistry<V>
createRegistry
(ResourceLocation name, RegistryBuilder<V> builder) private void
findSuperTypes
(Class<?> type, Set<Class<?>> types) static List<org.apache.commons.lang3.tuple.Pair<String,
HandshakeMessages.S2CRegistry>> generateRegistryPackets
(boolean isLocal) getName()
<V> ResourceLocation
getName
(IForgeRegistry<V> reg) <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) (专用程序包) boolean
static void
(专用程序包) static <V> void
registerToRootRegistry
(ForgeRegistry<V> forgeReg) takeSnapshot
(boolean savingToDisc) <V> ResourceLocation
updateLegacyName
(ResourceLocation legacyName)
-
字段详细资料
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
ACTIVE
-
VANILLA
-
FROZEN
-
vanillaRegistryKeys
-
registries
com.google.common.collect.BiMap<ResourceLocation,ForgeRegistry<?>> registries -
persisted
-
synced
-
legacyNames
-
name
-
-
构造器详细资料
-
RegistryManager
RegistryManager() -
RegistryManager
-
-
方法详细资料
-
getName
-
isStaging
boolean isStaging() -
getRegistry
-
getRegistry
-
getName
-
updateLegacyName
-
getRegistry
-
createRegistry
-
registerToRootRegistry
-
injectForgeRegistry
private static <V> void injectForgeRegistry(ForgeRegistry<V> forgeReg, Registry<? extends Registry<?>> rootRegistry) -
postNewRegistryEvent
public static void postNewRegistryEvent() -
addLegacyName
-
findSuperTypes
-
takeSnapshot
-
clean
public void clean() -
generateRegistryPackets
public static List<org.apache.commons.lang3.tuple.Pair<String,HandshakeMessages.S2CRegistry>> generateRegistryPackets(boolean isLocal) -
getRegistryNamesForSyncToClient
-
getVanillaRegistryKeys
-