public class DimensionManager
extends java.lang.Object
Constructor and Description |
---|
DimensionManager() |
Modifier and Type | Method and Description |
---|---|
static WorldProvider |
createProviderFor(int dim) |
static java.io.File |
getCurrentSaveRootDirectory()
Return the current root directory for the world save.
|
static int[] |
getDimensions(DimensionType type)
Returns a list of dimensions associated with this DimensionType.
|
static java.lang.Integer[] |
getIDs() |
static java.lang.Integer[] |
getIDs(boolean check) |
static int |
getNextFreeDimId()
Return the next free dimension ID.
|
static WorldProvider |
getProvider(int dim) |
static DimensionType |
getProviderType(int dim) |
static java.lang.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 boolean |
isDimensionRegistered(int dim) |
static void |
loadDimensionDataMap(NBTTagCompound compoundTag) |
static void |
registerDimension(int id,
DimensionType type) |
static NBTTagCompound |
saveDimensionDataMap() |
static void |
setWorld(int id,
WorldServer world,
MinecraftServer server) |
static void |
unloadWorld(int id) |
static void |
unloadWorlds(java.util.Hashtable<java.lang.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
|
public static int[] getDimensions(DimensionType type)
public static void init()
public static void registerDimension(int id, DimensionType type)
public static void unregisterDimension(int id)
public static boolean isDimensionRegistered(int dim)
public static DimensionType getProviderType(int dim)
public static WorldProvider getProvider(int dim)
public static java.lang.Integer[] getIDs(boolean check)
public static java.lang.Integer[] getIDs()
public static void setWorld(int id, @Nullable WorldServer world, MinecraftServer server)
public static void initDimension(int dim)
public static WorldServer getWorld(int id)
public static WorldServer[] getWorlds()
public static java.lang.Integer[] getStaticDimensionIDs()
public static WorldProvider createProviderFor(int dim)
public static void unloadWorld(int id)
public static void unloadWorlds(java.util.Hashtable<java.lang.Integer,long[]> worldTickTimes)
public static int getNextFreeDimId()
public static NBTTagCompound saveDimensionDataMap()
public static void loadDimensionDataMap(@Nullable NBTTagCompound compoundTag)
@Nullable public static java.io.File getCurrentSaveRootDirectory()