|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraftforge.common.DimensionManager
public class DimensionManager
Constructor Summary | |
---|---|
DimensionManager()
|
Method Summary | |
---|---|
static WorldProvider |
createProviderFor(int dim)
|
static File |
getCurrentSaveRootDirectory()
Return the current root directory for the world save. |
static Integer[] |
getIDs()
|
static int |
getNextFreeDimId()
Return the next free dimension ID. |
static WorldProvider |
getProvider(int dim)
|
static int |
getProviderType(int dim)
|
static Integer[] |
getStaticDimensionIDs()
Not public API: used internally to get dimensions that should load at server startup |
static WorldServer |
getWorld(int id)
|
static WorldServer[] |
getWorlds()
|
static void |
init()
|
static void |
initDimension(int dim)
|
static void |
loadDimensionDataMap(NBTTagCompound compoundTag)
|
static void |
registerDimension(int id,
int providerType)
|
static boolean |
registerProviderType(int id,
Class<? extends WorldProvider> provider,
boolean keepLoaded)
|
static NBTTagCompound |
saveDimensionDataMap()
|
static void |
setWorld(int id,
WorldServer world)
|
static boolean |
shouldLoadSpawn(int dim)
|
static void |
unloadWorld(int id)
|
static void |
unloadWorlds(Hashtable<Integer,long[]> worldTickTimes)
|
static void |
unregisterDimension(int id)
For unregistering a dimension when the save is changed (disconnected from a server or loaded a new save |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DimensionManager()
Method Detail |
---|
public static boolean registerProviderType(int id, Class<? extends WorldProvider> provider, boolean keepLoaded)
public static void init()
public static void registerDimension(int id, int providerType)
public static void unregisterDimension(int id)
public static int getProviderType(int dim)
public static WorldProvider getProvider(int dim)
public static Integer[] getIDs()
public static void setWorld(int id, WorldServer world)
public static void initDimension(int dim)
public static WorldServer getWorld(int id)
public static WorldServer[] getWorlds()
public static boolean shouldLoadSpawn(int dim)
public static Integer[] getStaticDimensionIDs()
public static WorldProvider createProviderFor(int dim)
public static void unloadWorld(int id)
public static void unloadWorlds(Hashtable<Integer,long[]> worldTickTimes)
public static int getNextFreeDimId()
public static NBTTagCompound saveDimensionDataMap()
public static void loadDimensionDataMap(NBTTagCompound compoundTag)
public static File getCurrentSaveRootDirectory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |