public class PersistentRegistryManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PersistentRegistryManager.GameDataSnapshot |
Modifier and Type | Field and Description |
---|---|
static ResourceLocation |
BIOMES |
static ResourceLocation |
BLOCKS |
static ResourceLocation |
ENCHANTMENTS |
static ResourceLocation |
ENTITIES |
static ResourceLocation |
ITEMS |
static ResourceLocation |
POTIONS |
static ResourceLocation |
POTIONTYPES |
static ResourceLocation |
SOUNDEVENTS |
Constructor and Description |
---|
PersistentRegistryManager() |
Modifier and Type | Method and Description |
---|---|
static <T extends IForgeRegistryEntry<T>> |
createRegistry(ResourceLocation registryName,
java.lang.Class<T> registryType,
ResourceLocation optionalDefaultKey,
int minId,
int maxId,
boolean hasDelegates,
IForgeRegistry.AddCallback<T> addCallback,
IForgeRegistry.ClearCallback<T> clearCallback,
IForgeRegistry.CreateCallback<T> createCallback)
Deprecated.
|
static <T extends IForgeRegistryEntry<T>> |
createRegistry(ResourceLocation registryName,
java.lang.Class<T> registryType,
ResourceLocation optionalDefaultKey,
int minId,
int maxId,
boolean hasDelegates,
IForgeRegistry.AddCallback<T> addCallback,
IForgeRegistry.ClearCallback<T> clearCallback,
IForgeRegistry.CreateCallback<T> createCallback,
IForgeRegistry.SubstitutionCallback<T> substitutionCallback)
Deprecated.
|
static void |
fireCreateRegistryEvents() |
static void |
fireRegistryEvents() |
static void |
freezeData() |
static void |
freezeVanilla() |
static java.util.List<java.lang.String> |
injectSnapshot(PersistentRegistryManager.GameDataSnapshot snapshot,
boolean injectFrozenData,
boolean isLocalWorld) |
static boolean |
isFrozen(FMLControlledNamespacedRegistry<?> registry) |
static <T extends IForgeRegistryEntry<T>> |
makeDelegate(T obj,
java.lang.Class<T> rootClass) |
static java.util.List<java.lang.String> |
processIdRematches(java.lang.Iterable<FMLMissingMappingsEvent.MissingMapping> missedMappings,
boolean isLocalWorld,
java.util.Map<ResourceLocation,java.lang.Integer> missingBlocks,
java.util.Map<ResourceLocation,java.lang.Integer> missingItems,
java.util.Map<ResourceLocation,java.lang.Integer[]> remapBlocks,
java.util.Map<ResourceLocation,java.lang.Integer[]> remapItems) |
static void |
revertToFrozen() |
static PersistentRegistryManager.GameDataSnapshot |
takeSnapshot() |
public static final ResourceLocation BLOCKS
public static final ResourceLocation ITEMS
public static final ResourceLocation POTIONS
public static final ResourceLocation BIOMES
public static final ResourceLocation SOUNDEVENTS
public static final ResourceLocation POTIONTYPES
public static final ResourceLocation ENCHANTMENTS
public static final ResourceLocation ENTITIES
public static void fireCreateRegistryEvents()
public static void fireRegistryEvents()
@Deprecated public static <T extends IForgeRegistryEntry<T>> FMLControlledNamespacedRegistry<T> createRegistry(ResourceLocation registryName, java.lang.Class<T> registryType, ResourceLocation optionalDefaultKey, int minId, int maxId, boolean hasDelegates, @Nullable IForgeRegistry.AddCallback<T> addCallback, @Nullable IForgeRegistry.ClearCallback<T> clearCallback, @Nullable IForgeRegistry.CreateCallback<T> createCallback)
@Deprecated public static <T extends IForgeRegistryEntry<T>> FMLControlledNamespacedRegistry<T> createRegistry(ResourceLocation registryName, java.lang.Class<T> registryType, @Nullable ResourceLocation optionalDefaultKey, int minId, int maxId, boolean hasDelegates, @Nullable IForgeRegistry.AddCallback<T> addCallback, @Nullable IForgeRegistry.ClearCallback<T> clearCallback, @Nullable IForgeRegistry.CreateCallback<T> createCallback, @Nullable IForgeRegistry.SubstitutionCallback<T> substitutionCallback)
public static java.util.List<java.lang.String> injectSnapshot(PersistentRegistryManager.GameDataSnapshot snapshot, boolean injectFrozenData, boolean isLocalWorld)
public static boolean isFrozen(FMLControlledNamespacedRegistry<?> registry)
public static void revertToFrozen()
public static void freezeData()
public static void freezeVanilla()
public static java.util.List<java.lang.String> processIdRematches(java.lang.Iterable<FMLMissingMappingsEvent.MissingMapping> missedMappings, boolean isLocalWorld, java.util.Map<ResourceLocation,java.lang.Integer> missingBlocks, java.util.Map<ResourceLocation,java.lang.Integer> missingItems, java.util.Map<ResourceLocation,java.lang.Integer[]> remapBlocks, java.util.Map<ResourceLocation,java.lang.Integer[]> remapItems)
public static PersistentRegistryManager.GameDataSnapshot takeSnapshot()
public static <T extends IForgeRegistryEntry<T>> RegistryDelegate<T> makeDelegate(T obj, java.lang.Class<T> rootClass)