public class GameData
extends java.lang.Object
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 |
PROFESSIONS |
static ResourceLocation |
RECIPES |
static ResourceLocation |
SOUNDEVENTS |
Constructor and Description |
---|
GameData() |
Modifier and Type | Method and Description |
---|---|
static void |
fireCreateRegistryEvents() |
static void |
fireRegistryEvents() |
static void |
fireRegistryEvents(java.util.function.Predicate<ResourceLocation> filter) |
static void |
freezeData() |
static com.google.common.collect.BiMap<Block,Item> |
getBlockItemMap() |
static ObjectIntIdentityMap<IBlockState> |
getBlockStateIDMap() |
static ForgeRegistry<EntityEntry> |
getEntityRegistry() |
static <V extends IForgeRegistryEntry<V>> |
getWrapper(java.lang.Class<V> cls) |
static <V extends IForgeRegistryEntry<V>> |
getWrapperDefaulted(java.lang.Class<V> cls) |
static void |
init() |
static com.google.common.collect.Multimap<ResourceLocation,ResourceLocation> |
injectSnapshot(java.util.Map<ResourceLocation,ForgeRegistry.Snapshot> snapshot,
boolean injectFrozenData,
boolean isLocalWorld) |
static <K extends IForgeRegistryEntry<K>> |
register_impl(K value) |
static void |
registerEntity(int id,
ResourceLocation key,
java.lang.Class<? extends Entity> clazz,
java.lang.String oldName) |
static void |
revert(RegistryManager state,
ResourceLocation registry,
boolean lock) |
static void |
revertToFrozen() |
static void |
vanillaSnapshot() |
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 final ResourceLocation RECIPES
public static final ResourceLocation PROFESSIONS
public static void init()
public static <V extends IForgeRegistryEntry<V>> RegistryNamespacedDefaultedByKey<ResourceLocation,V> getWrapperDefaulted(java.lang.Class<V> cls)
public static <V extends IForgeRegistryEntry<V>> RegistryNamespaced<ResourceLocation,V> getWrapper(java.lang.Class<V> cls)
public static ObjectIntIdentityMap<IBlockState> getBlockStateIDMap()
public static <K extends IForgeRegistryEntry<K>> K register_impl(K value)
public static void vanillaSnapshot()
public static void freezeData()
public static void revertToFrozen()
public static void revert(RegistryManager state, ResourceLocation registry, boolean lock)
public static ForgeRegistry<EntityEntry> getEntityRegistry()
public static void registerEntity(int id, ResourceLocation key, java.lang.Class<? extends Entity> clazz, java.lang.String oldName)
public static com.google.common.collect.Multimap<ResourceLocation,ResourceLocation> injectSnapshot(java.util.Map<ResourceLocation,ForgeRegistry.Snapshot> snapshot, boolean injectFrozenData, boolean isLocalWorld)
public static void fireCreateRegistryEvents()
public static void fireRegistryEvents()
public static void fireRegistryEvents(java.util.function.Predicate<ResourceLocation> filter)