Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import micdoodle8.mods.galacticraft.api.world.ICelestialBodyRenderer;
- import micdoodle8.mods.galacticraft.api.world.IGalaxy;
- import micdoodle8.mods.galacticraft.api.world.IMapObject;
- import micdoodle8.mods.galacticraft.core.GalacticraftCore;
- public class GCCoreMapPlanetOverworld implements IMapObject
- {
- @Override
- public float getPlanetSize()
- {
- return 1.0F;//This is how large the planet square is.
- }
- @Override
- public float getDistanceFromCenter()
- {
- 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.
- }
- @Override
- public float getPhaseShift()
- {
- 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.
- }
- @Override
- public float getStretchValue()
- {
- return 1.0F;//Also not quite sure what this does, not well documented
- }
- @Override
- public ICelestialBodyRenderer getSlotRenderer()
- {
- return new TutorialPlanetSlotRenderer();
- }
- @Override
- public IGalaxy getParentGalaxy()
- {
- 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.
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement