Advertisement
Guest User

Untitled

a guest
Aug 18th, 2013
471
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.37 KB | None | 0 0
  1. import micdoodle8.mods.galacticraft.api.world.ICelestialBodyRenderer;
  2. import micdoodle8.mods.galacticraft.api.world.IGalaxy;
  3. import micdoodle8.mods.galacticraft.api.world.IMapObject;
  4. import micdoodle8.mods.galacticraft.core.GalacticraftCore;
  5.  
  6. public class GCCoreMapPlanetOverworld implements IMapObject
  7. {
  8.     @Override
  9.     public float getPlanetSize()
  10.     {
  11.         return 1.0F;//This is how large the planet square is.
  12.     }
  13.  
  14.     @Override
  15.     public float getDistanceFromCenter()
  16.     {
  17.         return 2.0F;//This is how far out the planet is from the center of the sun. 1.0 is what the overworld is at, so this is twice as far out.
  18.     }
  19.  
  20.     @Override
  21.     public float getPhaseShift()
  22.     {
  23.         return 2160F;//Not quite sure what this does, I think it has to do with the roatation of the planet...Some help here mic please.
  24.     }
  25.  
  26.     @Override
  27.     public float getStretchValue()
  28.     {
  29.         return 1.0F;//Also not quite sure what this does, not well documented
  30.     }
  31.  
  32.     @Override
  33.     public ICelestialBodyRenderer getSlotRenderer()
  34.     {
  35.         return new TutorialPlanetSlotRenderer();
  36.     }
  37.  
  38.     @Override
  39.     public IGalaxy getParentGalaxy()
  40.     {
  41.         return GalacticraftCore.galaxyMilkyWay;//This is the galaxy the planet is from. As new galaxies have not been properly implemented yet, we are forced to use the default one.
  42.     }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement