public class GameData
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GameData.GameDataSnapshot |
Modifier and Type | Field and Description |
---|---|
static FMLControlledNamespacedRegistry<Block> |
blockRegistry
Deprecated.
use
getBlockRegistry() instead. |
static FMLControlledNamespacedRegistry<Item> |
itemRegistry
Deprecated.
use
getItemRegistry() instead. |
Modifier and Type | Method and Description |
---|---|
static GameData.GameDataSnapshot |
buildItemDataList() |
static void |
dumpRegistry(java.io.File minecraftDir) |
static ModContainer |
findModOwner(java.lang.String string)
Deprecated.
no replacement planned
|
static void |
fixBrokenIds(java.util.Map<java.lang.String,java.lang.Integer> dataList,
java.util.Set<java.lang.Integer> blockedIds)
Fix IDs improperly allocated by early versions of the registry, best-effort.
|
static void |
freezeData() |
static int[] |
getBlockedIds() |
static FMLControlledNamespacedRegistry<Block> |
getBlockRegistry()
Get the currently active block registry.
|
static FMLControlledNamespacedRegistry<Item> |
getItemRegistry()
Get the currently active item registry.
|
protected static GameData |
getMain() |
static java.util.List<java.lang.String> |
injectWorldIDMap(java.util.Map<java.lang.String,java.lang.Integer> dataList,
java.util.Set<java.lang.Integer> blockedIds,
java.util.Map<java.lang.String,java.lang.String> blockAliases,
java.util.Map<java.lang.String,java.lang.String> itemAliases,
java.util.Set<java.lang.String> blockSubstitutions,
java.util.Set<java.lang.String> itemSubstitutions,
boolean injectFrozenData,
boolean isLocalWorld) |
static java.util.List<java.lang.String> |
injectWorldIDMap(java.util.Map<java.lang.String,java.lang.Integer> dataList,
java.util.Set<java.lang.String> blockSubstitutions,
java.util.Set<java.lang.String> itemSubstitutions,
boolean injectFrozenData,
boolean isLocalWorld) |
protected static boolean |
isFrozen(FMLControlledNamespacedRegistry<?> registry) |
static java.util.List<java.lang.String> |
processIdRematches(java.lang.Iterable<FMLMissingMappingsEvent.MissingMapping> missedMappings,
boolean isLocalWorld,
GameData gameData,
java.util.Map<java.lang.String,java.lang.Integer[]> remaps) |
static void |
revertToFrozen() |
@Deprecated public static final FMLControlledNamespacedRegistry<Block> blockRegistry
getBlockRegistry()
instead.@Deprecated public static final FMLControlledNamespacedRegistry<Item> itemRegistry
getItemRegistry()
instead.public static FMLControlledNamespacedRegistry<Block> getBlockRegistry()
public static FMLControlledNamespacedRegistry<Item> getItemRegistry()
@Deprecated public static ModContainer findModOwner(java.lang.String string)
public static GameData.GameDataSnapshot buildItemDataList()
public static int[] getBlockedIds()
public static void dumpRegistry(java.io.File minecraftDir)
public static void fixBrokenIds(java.util.Map<java.lang.String,java.lang.Integer> dataList, java.util.Set<java.lang.Integer> blockedIds)
dataList
- List containing the IDs to fixpublic static java.util.List<java.lang.String> injectWorldIDMap(java.util.Map<java.lang.String,java.lang.Integer> dataList, java.util.Set<java.lang.String> blockSubstitutions, java.util.Set<java.lang.String> itemSubstitutions, boolean injectFrozenData, boolean isLocalWorld)
public static java.util.List<java.lang.String> injectWorldIDMap(java.util.Map<java.lang.String,java.lang.Integer> dataList, java.util.Set<java.lang.Integer> blockedIds, java.util.Map<java.lang.String,java.lang.String> blockAliases, java.util.Map<java.lang.String,java.lang.String> itemAliases, java.util.Set<java.lang.String> blockSubstitutions, java.util.Set<java.lang.String> itemSubstitutions, boolean injectFrozenData, boolean isLocalWorld)
public static java.util.List<java.lang.String> processIdRematches(java.lang.Iterable<FMLMissingMappingsEvent.MissingMapping> missedMappings, boolean isLocalWorld, GameData gameData, java.util.Map<java.lang.String,java.lang.Integer[]> remaps)
public static void freezeData()
public static void revertToFrozen()
protected static boolean isFrozen(FMLControlledNamespacedRegistry<?> registry)
protected static GameData getMain()