public class DimensionManager extends Object
Modifier and Type | Field and Description |
---|---|
static BitSet |
dimensionMap |
static Hashtable<Integer,Integer> |
dimensions |
static boolean |
hasInit |
static Multiset<Integer> |
leakedWorlds |
static Hashtable<Integer,Class<? extends net.minecraft.world.WorldProvider>> |
providers |
static Hashtable<Integer,Boolean> |
spawnSettings |
static ArrayList<Integer> |
unloadQueue |
static ConcurrentMap<net.minecraft.world.World,net.minecraft.world.World> |
weakWorldMap |
static Hashtable<Integer,net.minecraft.world.WorldServer> |
worlds |
Constructor and Description |
---|
DimensionManager() |
Modifier and Type | Method and Description |
---|---|
static net.minecraft.world.WorldProvider |
createProviderFor(int dim) |
static int |
getClientDimensionToSend(int dim,
net.minecraft.world.WorldServer worldserver,
net.minecraft.entity.player.EntityPlayerMP playerIn) |
static File |
getCurrentSaveRootDirectory() |
static Integer[] |
getIDs() |
static int |
getNextFreeDimId() |
static int |
getProviderType(int dim) |
static Integer[] |
getStaticDimensionIDs() |
static net.minecraft.world.WorldServer |
getWorldFromDimId(int id) |
static net.minecraft.world.WorldServer[] |
getWorlds() |
static void |
init() |
static void |
initDimension(int dim) |
static boolean |
isDimensionRegistered(int dim) |
static void |
loadDimensionDataMap(net.minecraft.nbt.NBTTagCompound compound) |
static void |
registerDimension(int id,
int providerType) |
static boolean |
registerProviderType(int id,
Class<? extends net.minecraft.world.WorldProvider> provider,
boolean keepLoaded) |
static net.minecraft.nbt.NBTTagCompound |
saveDimensionDataMap() |
static void |
sendDimensionRegistration(net.minecraft.world.WorldServer worldserver,
net.minecraft.entity.player.EntityPlayerMP playerIn,
int dim) |
static void |
setWorld(int id,
net.minecraft.world.WorldServer world) |
static boolean |
shouldLoadSpawn(int dim) |
static boolean |
unloadWorldFromDimId(int id) |
public static final Hashtable<Integer,Class<? extends net.minecraft.world.WorldProvider>> providers
public static final ConcurrentMap<net.minecraft.world.World,net.minecraft.world.World> weakWorldMap
public static final BitSet dimensionMap
public static boolean hasInit
public static void init()
public static boolean registerProviderType(int id, Class<? extends net.minecraft.world.WorldProvider> provider, boolean keepLoaded)
public static int getProviderType(int dim)
public static net.minecraft.world.WorldProvider createProviderFor(int dim)
public static boolean shouldLoadSpawn(int dim)
public static void loadDimensionDataMap(net.minecraft.nbt.NBTTagCompound compound)
public static net.minecraft.nbt.NBTTagCompound saveDimensionDataMap()
public static Integer[] getIDs()
public static Integer[] getStaticDimensionIDs()
public static net.minecraft.world.WorldServer getWorldFromDimId(int id)
public static boolean unloadWorldFromDimId(int id)
public static void setWorld(int id, net.minecraft.world.WorldServer world)
public static net.minecraft.world.WorldServer[] getWorlds()
public static boolean isDimensionRegistered(int dim)
public static void registerDimension(int id, int providerType)
public static int getNextFreeDimId()
public static File getCurrentSaveRootDirectory()
public static void initDimension(int dim)
public static int getClientDimensionToSend(int dim, net.minecraft.world.WorldServer worldserver, net.minecraft.entity.player.EntityPlayerMP playerIn)
public static void sendDimensionRegistration(net.minecraft.world.WorldServer worldserver, net.minecraft.entity.player.EntityPlayerMP playerIn, int dim)