Advertisement
Guest User

Untitled

a guest
Aug 18th, 2013
442
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.66 KB | None | 0 0
  1. import net.minecraft.world.WorldProvider;
  2. import net.minecraftforge.common.Configuration;
  3. import micdoodle8.mods.galacticraft.api.world.IGalaxy;
  4. import micdoodle8.mods.galacticraft.api.world.IMapObject;
  5. import micdoodle8.mods.galacticraft.api.world.IPlanet;
  6. import micdoodle8.mods.galacticraft.core.GCCoreGalaxyBlockyWay;
  7.  
  8. import PlanetWorldProivder;
  9. import TutorialPlanetMapObject;
  10.  
  11. public class PlanetTutorial implements IPlanet {
  12.  
  13.     @Override
  14.     public String getName() {
  15.         return "TutorialPlanet";//This string must be the same as the one in the PlanetWorldProvider class
  16.     }
  17.  
  18.     @Override
  19.     public boolean isReachable() {
  20.         return true;//Whether or not you can get to this planet, or is it just there for something else, like moons, to exist off of.
  21.     }
  22.  
  23.     @Override
  24.     public IMapObject getMapObject() {
  25.         return new TutorialPlanetMapObject();//This renders the planet in the universe map.
  26.     }
  27.  
  28.     @Override
  29.     public boolean addToList() {
  30.         return true;//This is whether or not the planet should be visible in the Planet Selection GUI when you leave the atmosphere
  31.     }
  32.  
  33.     @Override
  34.     public boolean autoRegister() {
  35.         return false;//We already registered the planet, but you can let GC take care of it of you want to.
  36.     }
  37.  
  38.     @Override
  39.     public Class<? extends WorldProvider> getWorldProvider() {
  40.         return PlanetWorldProvider.class;
  41.     }
  42.  
  43.     @Override
  44.     public int getDimensionID() {
  45.         return MainModFile.config./*Replace with the name of your @mod file and what you use to refernce the config file*/get(Configuration.CATEGORY_GENERAL, "MyOwnDimensionID", -30).getInt();
  46.         }
  47.  
  48.     @Override
  49.     public IGalaxy getParentGalaxy() {
  50.         return new GCCoreGalaxyBlockyWay();
  51.     }
  52.  
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement