use of micdoodle8.mods.galacticraft.api.galaxies.CelestialBody.ScalableDistance in project MorePlanets by SteveKunG.
the class CelestialRegisterHelper method createMoon.
public static Moon createMoon(String name, Planet planet, float phaseShift, float distance, float orbitTime, float size, int tier, int id, Class<? extends WorldProvider> provider) {
Moon moon = new Moon(name).setParentPlanet(planet);
moon.setDimensionInfo(id, provider);
moon.setPhaseShift(phaseShift);
moon.setRelativeDistanceFromCenter(new ScalableDistance(distance, distance));
moon.setRelativeOrbitTime(orbitTime);
moon.setRelativeSize(size);
moon.setTierRequired(tier);
moon.setBodyIcon(new ResourceLocation("moreplanets:textures/gui/celestialbodies/" + name + ".png"));
return moon;
}
use of micdoodle8.mods.galacticraft.api.galaxies.CelestialBody.ScalableDistance in project MorePlanets by SteveKunG.
the class CelestialRegisterHelper method createPlanet.
public static Planet createPlanet(String name, SolarSystem solar, float phaseShift, float distance, float orbitTime, float size, int tier, int id, Class<? extends WorldProvider> provider) {
Planet planet = new Planet(name).setParentSolarSystem(solar);
planet.setDimensionInfo(id, provider);
planet.setPhaseShift(phaseShift);
planet.setRelativeDistanceFromCenter(new ScalableDistance(distance, distance));
planet.setRelativeOrbitTime(orbitTime);
planet.setRelativeSize(size);
planet.setTierRequired(tier);
planet.setBodyIcon(new ResourceLocation("moreplanets:textures/gui/celestialbodies/" + name + ".png"));
return planet;
}
use of micdoodle8.mods.galacticraft.api.galaxies.CelestialBody.ScalableDistance in project MorePlanets by SteveKunG.
the class CelestialRegisterHelper method createSpaceStation.
public static Satellite createSpaceStation(String name, Planet planet, float phaseShift, float distance, float orbitTime, float size, int tier) {
Satellite satellite = new Satellite(name).setParentBody(planet);
satellite.setPhaseShift(phaseShift);
satellite.setRelativeDistanceFromCenter(new ScalableDistance(distance, distance));
satellite.setRelativeOrbitTime(orbitTime);
satellite.setRelativeSize(size);
satellite.setTierRequired(tier);
satellite.setBodyIcon(new ResourceLocation("moreplanets:textures/gui/celestialbodies/" + name + ".png"));
return satellite;
}
Aggregations