Adding New Galaxy

Revision as of 14:45, 13 June 2014 by RamiLego4Game (talk | contribs) (Created page with "== Imports == IGalaxy: import micdoodle8.mods.galacticraft.api.world.IGalaxy; GalacticraftRegistry (Just In @Mod Class): import micdoodle8.mods.galacticraft.api.Galact...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Imports

IGalaxy:

   import micdoodle8.mods.galacticraft.api.world.IGalaxy;

GalacticraftRegistry (Just In @Mod Class):

   import micdoodle8.mods.galacticraft.api.GalacticraftRegistry;

Victor3 (Just In Galaxy Class):

   import micdoodle8.mods.galacticraft.api.vector.Vector3;

StatCollector (Just In Galaxy Class):

   import net.minecraft.util.StatCollector;

Creating Galaxy Class

To Create New Galaxy You Will Need To Create A Class For It. Galaxy Class Will Need To Implements IGalaxy.

getGalaxyName

   return StatCollector.translateToLocal("galaxy.blockyway.name"); //Change "galaxy.blockyway.name".

getXCoord

   return -1; //Change This To Whatever You Need,Note: One Number Will Make It Too Far, Another Note: PixelGalaxy Add-on Use X:1.

getYCoord

   return -1; //Change This To Whatever You Need,Note: One Number Will Make It Too Far, Another Note: PixelGalaxy Add-on Use Y:1.

getRGBRingColors

   return new Vector3(256.0D / 256.0D, 256.0D / 256.0D, 50.0D / 256.0D); //If You Need You Can Change The Color, It's Red,Green,Blue.

@Mod Class

  • Import Your Galaxy Class, Then Add This Variable:
   public static final IGalaxy galaxyMilkyWay = new GCCoreGalaxyBlockyWay(); //This Is From GalacticraftCore File, So Change The Names.
  • At Your init Function You Will Need To Register The Galaxy Using:
   GalacticraftRegistry.registerGalaxy(GalacticraftCore.galaxyMilkyWay); //This Is From GalacticraftCore File, So Change The Names.

Notes:

  • You Can't See Your Galaxy, It's Empty, You Will Need To Add Celestial Body To It.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Need wiki hosting?

Do you need a wiki for your Minecraft mod/gaming wiki? We'll host it for free! Contact us.

Other wikis

Indie-game wikis
Powered by Indie Wikis