From dc3df3edd5843bde0c1335d6a8e460b2c832aa48 Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Sat, 17 Jun 2017 08:12:18 +0300 Subject: full project files --- .../minecraftforge/common/DimensionManager.html | 575 +++++++++++++++++++++ 1 file changed, 575 insertions(+) create mode 100644 javadoc/net/minecraftforge/common/DimensionManager.html (limited to 'javadoc/net/minecraftforge/common/DimensionManager.html') diff --git a/javadoc/net/minecraftforge/common/DimensionManager.html b/javadoc/net/minecraftforge/common/DimensionManager.html new file mode 100644 index 0000000..9e54cb5 --- /dev/null +++ b/javadoc/net/minecraftforge/common/DimensionManager.html @@ -0,0 +1,575 @@ + + + + + +DimensionManager (Forge API) + + + + + + + +
+ + + + + +
+ + + +
+
net.minecraftforge.common
+

Class DimensionManager

+
+
+ +
+
    +
  • +
    +
    +
    public class DimensionManager
    +extends java.lang.Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DimensionManager

        +
        public DimensionManager()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        registerProviderType

        +
        public static boolean registerProviderType(int id,
        +                           java.lang.Class<? extends WorldProvider> provider,
        +                           boolean keepLoaded)
        +
      • +
      + + + +
        +
      • +

        unregisterProviderType

        +
        public static int[] unregisterProviderType(int id)
        +
        Unregisters a Provider type, and returns a array of all dimensions that are + registered to this provider type. + If the return size is greater then 0, it is required that the caller either + change those dimensions's registered type, or replace this type before the + world is attempted to load, else the loader will throw an exception.
        +
        Parameters:
        id - The provider type ID to unreigster
        +
        Returns:
        An array containing all dimension IDs still registered to this provider type.
        +
      • +
      + + + +
        +
      • +

        init

        +
        public static void init()
        +
      • +
      + + + +
        +
      • +

        registerDimension

        +
        public static void registerDimension(int id,
        +                     int providerType)
        +
      • +
      + + + +
        +
      • +

        unregisterDimension

        +
        public static void unregisterDimension(int id)
        +
        For unregistering a dimension when the save is changed (disconnected from a server or loaded a new save
        +
      • +
      + + + +
        +
      • +

        isDimensionRegistered

        +
        public static boolean isDimensionRegistered(int dim)
        +
      • +
      + + + +
        +
      • +

        getProviderType

        +
        public static int getProviderType(int dim)
        +
      • +
      + + + +
        +
      • +

        getProvider

        +
        public static WorldProvider getProvider(int dim)
        +
      • +
      + + + +
        +
      • +

        getIDs

        +
        public static java.lang.Integer[] getIDs(boolean check)
        +
      • +
      + + + +
        +
      • +

        getIDs

        +
        public static java.lang.Integer[] getIDs()
        +
      • +
      + + + +
        +
      • +

        setWorld

        +
        public static void setWorld(int id,
        +            WorldServer world)
        +
      • +
      + + + +
        +
      • +

        initDimension

        +
        public static void initDimension(int dim)
        +
      • +
      + + + +
        +
      • +

        getWorld

        +
        public static WorldServer getWorld(int id)
        +
      • +
      + + + +
        +
      • +

        getWorlds

        +
        public static WorldServer[] getWorlds()
        +
      • +
      + + + +
        +
      • +

        shouldLoadSpawn

        +
        public static boolean shouldLoadSpawn(int dim)
        +
      • +
      + + + +
        +
      • +

        getStaticDimensionIDs

        +
        public static java.lang.Integer[] getStaticDimensionIDs()
        +
        Not public API: used internally to get dimensions that should load at + server startup
        +
      • +
      + + + +
        +
      • +

        createProviderFor

        +
        public static WorldProvider createProviderFor(int dim)
        +
      • +
      + + + +
        +
      • +

        unloadWorld

        +
        public static void unloadWorld(int id)
        +
      • +
      + + + +
        +
      • +

        unloadWorlds

        +
        public static void unloadWorlds(java.util.Hashtable<java.lang.Integer,long[]> worldTickTimes)
        +
      • +
      + + + +
        +
      • +

        getNextFreeDimId

        +
        public static int getNextFreeDimId()
        +
        Return the next free dimension ID. Note: you are not guaranteed a contiguous + block of free ids. Always call for each individual ID you wish to get.
        +
        Returns:
        the next free dimension ID
        +
      • +
      + + + +
        +
      • +

        saveDimensionDataMap

        +
        public static NBTTagCompound saveDimensionDataMap()
        +
      • +
      + + + +
        +
      • +

        loadDimensionDataMap

        +
        public static void loadDimensionDataMap(NBTTagCompound compoundTag)
        +
      • +
      + + + +
        +
      • +

        getCurrentSaveRootDirectory

        +
        public static java.io.File getCurrentSaveRootDirectory()
        +
        Return the current root directory for the world save. Accesses getSaveHandler from the overworld
        +
        Returns:
        the root directory of the save
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + -- cgit v1.2.3