Search in sources :

Example 1 with AtmosphereInfo

use of micdoodle8.mods.galacticraft.api.world.AtmosphereInfo in project Galacticraft by micdoodle8.

the class MarsModule method init.

@Override
public void init(FMLInitializationEvent event) {
    this.registerMicroBlocks();
    SchematicRegistry.registerSchematicRecipe(new SchematicTier2Rocket());
    SchematicRegistry.registerSchematicRecipe(new SchematicCargoRocket());
    GalacticraftCore.packetPipeline.addDiscriminator(6, PacketSimpleMars.class);
    this.registerTileEntities();
    this.registerCreatures();
    this.registerOtherEntities();
    MarsModule.planetMars = (Planet) new Planet("mars").setParentSolarSystem(GalacticraftCore.solarSystemSol).setRingColorRGB(0.67F, 0.1F, 0.1F).setPhaseShift(0.1667F).setRelativeSize(0.5319F).setRelativeDistanceFromCenter(new CelestialBody.ScalableDistance(1.25F, 1.25F)).setRelativeOrbitTime(1.8811610076670317634173055859803F);
    MarsModule.planetMars.setBodyIcon(new ResourceLocation(Constants.ASSET_PREFIX, "textures/gui/celestialbodies/mars.png"));
    MarsModule.planetMars.setDimensionInfo(ConfigManagerMars.dimensionIDMars, WorldProviderMars.class).setTierRequired(2);
    MarsModule.planetMars.setAtmosphere(new AtmosphereInfo(false, false, false, -1.0F, 0.3F, 0.1F));
    MarsModule.planetMars.atmosphereComponent(EnumAtmosphericGas.CO2).atmosphereComponent(EnumAtmosphericGas.ARGON).atmosphereComponent(EnumAtmosphericGas.NITROGEN);
    MarsModule.planetMars.setBiomeInfo(BiomeGenBaseMars.marsFlat);
    MarsModule.planetMars.addMobInfo(new BiomeGenBase.SpawnListEntry(EntityEvolvedZombie.class, 8, 2, 3));
    MarsModule.planetMars.addMobInfo(new BiomeGenBase.SpawnListEntry(EntityEvolvedSpider.class, 8, 2, 3));
    MarsModule.planetMars.addMobInfo(new BiomeGenBase.SpawnListEntry(EntityEvolvedSkeleton.class, 8, 2, 3));
    MarsModule.planetMars.addMobInfo(new BiomeGenBase.SpawnListEntry(EntityEvolvedCreeper.class, 8, 2, 3));
    MarsModule.planetMars.addMobInfo(new BiomeGenBase.SpawnListEntry(EntityEvolvedEnderman.class, 10, 1, 4));
    MarsModule.planetMars.addChecklistKeys("equip_oxygen_suit", "thermal_padding");
    GalaxyRegistry.registerPlanet(MarsModule.planetMars);
    GalacticraftRegistry.registerTeleportType(WorldProviderMars.class, new TeleportTypeMars());
    GalacticraftRegistry.registerRocketGui(WorldProviderMars.class, new ResourceLocation(GalacticraftPlanets.ASSET_PREFIX, "textures/gui/mars_rocket_gui.png"));
    GalacticraftRegistry.addDungeonLoot(2, new ItemStack(MarsItems.schematic, 1, 0));
    GalacticraftRegistry.addDungeonLoot(2, new ItemStack(MarsItems.schematic, 1, 1));
    GalacticraftRegistry.addDungeonLoot(2, new ItemStack(MarsItems.schematic, 1, 2));
    CompressorRecipes.addShapelessRecipe(new ItemStack(MarsItems.marsItemBasic, 1, 3), new ItemStack(GCItems.heavyPlatingTier1), new ItemStack(GCItems.itemBasicMoon, 1, 1));
    CompressorRecipes.addShapelessRecipe(new ItemStack(MarsItems.marsItemBasic, 1, 5), new ItemStack(MarsItems.marsItemBasic, 1, 2));
    GalacticraftCore.proxy.registerFluidTexture(MarsModule.sludge, new ResourceLocation(GalacticraftPlanets.ASSET_PREFIX, "textures/misc/underbecterial.png"));
}
Also used : SchematicCargoRocket(micdoodle8.mods.galacticraft.planets.mars.schematic.SchematicCargoRocket) SchematicTier2Rocket(micdoodle8.mods.galacticraft.planets.mars.schematic.SchematicTier2Rocket) WorldProviderMars(micdoodle8.mods.galacticraft.planets.mars.dimension.WorldProviderMars) AtmosphereInfo(micdoodle8.mods.galacticraft.api.world.AtmosphereInfo) TeleportTypeMars(micdoodle8.mods.galacticraft.planets.mars.dimension.TeleportTypeMars) BiomeGenBase(net.minecraft.world.biome.BiomeGenBase) ResourceLocation(net.minecraft.util.ResourceLocation) Planet(micdoodle8.mods.galacticraft.api.galaxies.Planet) ItemStack(net.minecraft.item.ItemStack)

Example 2 with AtmosphereInfo

use of micdoodle8.mods.galacticraft.api.world.AtmosphereInfo in project Galacticraft by micdoodle8.

the class VenusModule method init.

@Override
public void init(FMLInitializationEvent event) {
    this.registerMicroBlocks();
    // GalacticraftCore.packetPipeline.addDiscriminator(8, PacketSimpleVenus.class);
    this.registerTileEntities();
    this.registerCreatures();
    this.registerOtherEntities();
    VenusModule.planetVenus = (Planet) new Planet("venus").setParentSolarSystem(GalacticraftCore.solarSystemSol).setRingColorRGB(0.1F, 0.9F, 0.6F).setPhaseShift(2.0F).setRelativeDistanceFromCenter(new CelestialBody.ScalableDistance(0.75F, 0.75F)).setRelativeOrbitTime(0.61527929901423877327491785323111F);
    VenusModule.planetVenus.setBodyIcon(new ResourceLocation(Constants.ASSET_PREFIX, "textures/gui/celestialbodies/venus.png"));
    VenusModule.planetVenus.setDimensionInfo(ConfigManagerVenus.dimensionIDVenus, WorldProviderVenus.class).setTierRequired(3);
    VenusModule.planetVenus.setAtmosphere(new AtmosphereInfo(false, false, true, 5.0F, 0.3F, 54.0F));
    VenusModule.planetVenus.atmosphereComponent(EnumAtmosphericGas.CO2).atmosphereComponent(EnumAtmosphericGas.NITROGEN);
    VenusModule.planetVenus.setBiomeInfo(BiomeGenBaseVenus.venusFlat, BiomeGenBaseVenus.venusMountain, BiomeGenBaseVenus.venusValley);
    VenusModule.planetVenus.addMobInfo(new SpawnListEntry(EntityEvolvedZombie.class, 8, 2, 3));
    VenusModule.planetVenus.addMobInfo(new SpawnListEntry(EntityEvolvedSpider.class, 8, 2, 3));
    VenusModule.planetVenus.addMobInfo(new SpawnListEntry(EntityEvolvedSkeleton.class, 8, 2, 3));
    VenusModule.planetVenus.addMobInfo(new SpawnListEntry(EntityEvolvedCreeper.class, 8, 2, 3));
    VenusModule.planetVenus.addMobInfo(new SpawnListEntry(EntityEvolvedEnderman.class, 10, 1, 4));
    VenusModule.planetVenus.addChecklistKeys("equip_oxygen_suit", "equip_shield_controller", "thermal_padding_t2");
    GalaxyRegistry.registerPlanet(VenusModule.planetVenus);
    GalacticraftRegistry.registerTeleportType(WorldProviderVenus.class, new TeleportTypeVenus());
    GalacticraftRegistry.registerRocketGui(WorldProviderVenus.class, new ResourceLocation(GalacticraftPlanets.ASSET_PREFIX, "textures/gui/venus_rocket_gui.png"));
    GalacticraftRegistry.addDungeonLoot(3, new ItemStack(VenusItems.volcanicPickaxe, 1, 0));
    GalacticraftRegistry.addDungeonLoot(3, new ItemStack(VenusItems.basicItem, 1, 0));
    GalacticraftRegistry.registerGear(Constants.GEAR_ID_SHIELD_CONTROLLER, EnumExtendedInventorySlot.SHIELD_CONTROLLER, new ItemStack(VenusItems.basicItem, 1, 0));
    GalacticraftRegistry.registerGear(Constants.GEAR_ID_THERMAL_PADDING_T2_HELMET, EnumExtendedInventorySlot.THERMAL_HELMET, new ItemStack(VenusItems.thermalPaddingTier2, 1, 0));
    GalacticraftRegistry.registerGear(Constants.GEAR_ID_THERMAL_PADDING_T2_CHESTPLATE, EnumExtendedInventorySlot.THERMAL_CHESTPLATE, new ItemStack(VenusItems.thermalPaddingTier2, 1, 1));
    GalacticraftRegistry.registerGear(Constants.GEAR_ID_THERMAL_PADDING_T2_LEGGINGS, EnumExtendedInventorySlot.THERMAL_LEGGINGS, new ItemStack(VenusItems.thermalPaddingTier2, 1, 2));
    GalacticraftRegistry.registerGear(Constants.GEAR_ID_THERMAL_PADDING_T2_BOOTS, EnumExtendedInventorySlot.THERMAL_BOOTS, new ItemStack(VenusItems.thermalPaddingTier2, 1, 3));
    GalacticraftCore.proxy.registerFluidTexture(VenusModule.sulphuricAcid, new ResourceLocation(GalacticraftPlanets.ASSET_PREFIX, "textures/misc/underacid.png"));
}
Also used : AtmosphereInfo(micdoodle8.mods.galacticraft.api.world.AtmosphereInfo) SpawnListEntry(net.minecraft.world.biome.BiomeGenBase.SpawnListEntry) TeleportTypeVenus(micdoodle8.mods.galacticraft.planets.venus.dimension.TeleportTypeVenus) ResourceLocation(net.minecraft.util.ResourceLocation) Planet(micdoodle8.mods.galacticraft.api.galaxies.Planet) ItemStack(net.minecraft.item.ItemStack) WorldProviderVenus(micdoodle8.mods.galacticraft.planets.venus.dimension.WorldProviderVenus)

Example 3 with AtmosphereInfo

use of micdoodle8.mods.galacticraft.api.world.AtmosphereInfo in project Galacticraft by micdoodle8.

the class GalacticraftCore method init.

@EventHandler
public void init(FMLInitializationEvent event) {
    GCBlocks.doOtherModsTorches();
    GalacticraftCore.handler.registerItemChanges();
    GalacticraftCore.galacticraftBlocksTab.setItemForTab(Item.getItemFromBlock(GCBlocks.machineBase2));
    GalacticraftCore.galacticraftItemsTab.setItemForTab(GCItems.rocketTier1);
    if (FMLCommonHandler.instance().getSide() == Side.CLIENT) {
        GCBlocks.finalizeSort();
        GCItems.finalizeSort();
    }
    GalacticraftCore.proxy.init(event);
    GalacticraftCore.packetPipeline = GalacticraftChannelHandler.init();
    GalacticraftCore.solarSystemSol = new SolarSystem("sol", "milky_way").setMapPosition(new Vector3(0.0F, 0.0F, 0.0F));
    Star starSol = (Star) new Star("sol").setParentSolarSystem(GalacticraftCore.solarSystemSol).setTierRequired(-1);
    starSol.setBodyIcon(new ResourceLocation(Constants.ASSET_PREFIX, "textures/gui/celestialbodies/sun.png"));
    GalacticraftCore.solarSystemSol.setMainStar(starSol);
    GalacticraftCore.planetOverworld = (Planet) new Planet("overworld").setParentSolarSystem(GalacticraftCore.solarSystemSol).setRingColorRGB(0.1F, 0.9F, 0.6F).setPhaseShift(0.0F);
    GalacticraftCore.planetOverworld.setBodyIcon(new ResourceLocation(Constants.ASSET_PREFIX, "textures/gui/celestialbodies/earth.png"));
    GalacticraftCore.planetOverworld.setDimensionInfo(ConfigManagerCore.idDimensionOverworld, WorldProvider.class, false).setTierRequired(1);
    GalacticraftCore.planetOverworld.atmosphereComponent(EnumAtmosphericGas.NITROGEN).atmosphereComponent(EnumAtmosphericGas.OXYGEN).atmosphereComponent(EnumAtmosphericGas.ARGON).atmosphereComponent(EnumAtmosphericGas.WATER);
    GalacticraftCore.planetOverworld.addChecklistKeys("equip_parachute");
    GalacticraftCore.moonMoon = (Moon) new Moon("moon").setParentPlanet(GalacticraftCore.planetOverworld).setRelativeSize(0.2667F).setRelativeDistanceFromCenter(new CelestialBody.ScalableDistance(13F, 13F)).setRelativeOrbitTime(1 / 0.01F);
    GalacticraftCore.moonMoon.setDimensionInfo(ConfigManagerCore.idDimensionMoon, WorldProviderMoon.class).setTierRequired(1);
    GalacticraftCore.moonMoon.setBodyIcon(new ResourceLocation(Constants.ASSET_PREFIX, "textures/gui/celestialbodies/moon.png"));
    GalacticraftCore.moonMoon.setAtmosphere(new AtmosphereInfo(false, false, false, 0.0F, 0.0F, 0.0F));
    GalacticraftCore.moonMoon.setBiomeInfo(BiomeGenBaseMoon.moonFlat);
    GalacticraftCore.moonMoon.addMobInfo(new SpawnListEntry(EntityEvolvedZombie.class, 8, 2, 3));
    GalacticraftCore.moonMoon.addMobInfo(new SpawnListEntry(EntityEvolvedSpider.class, 8, 2, 3));
    GalacticraftCore.moonMoon.addMobInfo(new SpawnListEntry(EntityEvolvedSkeleton.class, 8, 2, 3));
    GalacticraftCore.moonMoon.addMobInfo(new SpawnListEntry(EntityEvolvedCreeper.class, 8, 2, 3));
    GalacticraftCore.moonMoon.addMobInfo(new SpawnListEntry(EntityEvolvedEnderman.class, 10, 1, 4));
    GalacticraftCore.moonMoon.addChecklistKeys("equip_oxygen_suit");
    // Satellites must always have a WorldProvider implementing IOrbitDimension
    GalacticraftCore.satelliteSpaceStation = (Satellite) new Satellite("spacestation.overworld").setParentBody(GalacticraftCore.planetOverworld).setRelativeSize(0.2667F).setRelativeDistanceFromCenter(new CelestialBody.ScalableDistance(9F, 9F)).setRelativeOrbitTime(1 / 0.05F);
    GalacticraftCore.satelliteSpaceStation.setDimensionInfo(ConfigManagerCore.idDimensionOverworldOrbit, ConfigManagerCore.idDimensionOverworldOrbitStatic, WorldProviderOverworldOrbit.class).setTierRequired(1);
    GalacticraftCore.satelliteSpaceStation.setBodyIcon(new ResourceLocation(Constants.ASSET_PREFIX, "textures/gui/celestialbodies/space_station.png"));
    GalacticraftCore.satelliteSpaceStation.setAtmosphere(new AtmosphereInfo(false, false, false, 0.0F, 0.1F, 0.02F));
    GalacticraftCore.satelliteSpaceStation.addChecklistKeys("equip_oxygen_suit", "create_grapple");
    ForgeChunkManager.setForcedChunkLoadingCallback(GalacticraftCore.instance, new ChunkLoadingCallback());
    MinecraftForge.EVENT_BUS.register(new ConnectionEvents());
    SchematicRegistry.registerSchematicRecipe(new SchematicRocketT1());
    SchematicRegistry.registerSchematicRecipe(new SchematicMoonBuggy());
    SchematicRegistry.registerSchematicRecipe(new SchematicAdd());
    ChunkPowerHandler.initiate();
    EnergyConfigHandler.initGas();
    CompatibilityManager.registerMicroBlocks();
    this.registerCreatures();
    this.registerOtherEntities();
    this.registerTileEntities();
    GalaxyRegistry.registerSolarSystem(GalacticraftCore.solarSystemSol);
    GalaxyRegistry.registerPlanet(GalacticraftCore.planetOverworld);
    GalaxyRegistry.registerMoon(GalacticraftCore.moonMoon);
    GalaxyRegistry.registerSatellite(GalacticraftCore.satelliteSpaceStation);
    GalacticraftRegistry.registerProvider(ConfigManagerCore.idDimensionOverworldOrbit, WorldProviderOverworldOrbit.class, false, 0);
    GalacticraftRegistry.registerProvider(ConfigManagerCore.idDimensionOverworldOrbitStatic, WorldProviderOverworldOrbit.class, true, 0);
    GalacticraftRegistry.registerTeleportType(WorldProviderSurface.class, new TeleportTypeOverworld());
    GalacticraftRegistry.registerTeleportType(WorldProviderOverworldOrbit.class, new TeleportTypeOrbit());
    GalacticraftRegistry.registerTeleportType(WorldProviderMoon.class, new TeleportTypeMoon());
    GalacticraftRegistry.registerRocketGui(WorldProviderOverworldOrbit.class, new ResourceLocation(Constants.ASSET_PREFIX, "textures/gui/overworld_rocket_gui.png"));
    GalacticraftRegistry.registerRocketGui(WorldProviderSurface.class, new ResourceLocation(Constants.ASSET_PREFIX, "textures/gui/overworld_rocket_gui.png"));
    GalacticraftRegistry.registerRocketGui(WorldProviderMoon.class, new ResourceLocation(Constants.ASSET_PREFIX, "textures/gui/moon_rocket_gui.png"));
    GalacticraftRegistry.addDungeonLoot(1, new ItemStack(GCItems.schematic, 1, 0));
    GalacticraftRegistry.addDungeonLoot(1, new ItemStack(GCItems.schematic, 1, 1));
    if (ConfigManagerCore.enableCopperOreGen) {
        GameRegistry.registerWorldGenerator(new OverworldGenerator(GCBlocks.basicBlock, 5, 24, 0, 75, 7), 4);
    }
    if (ConfigManagerCore.enableTinOreGen) {
        GameRegistry.registerWorldGenerator(new OverworldGenerator(GCBlocks.basicBlock, 6, 22, 0, 60, 7), 4);
    }
    if (ConfigManagerCore.enableAluminumOreGen) {
        GameRegistry.registerWorldGenerator(new OverworldGenerator(GCBlocks.basicBlock, 7, 18, 0, 45, 7), 4);
    }
    if (ConfigManagerCore.enableSiliconOreGen) {
        GameRegistry.registerWorldGenerator(new OverworldGenerator(GCBlocks.basicBlock, 8, 3, 0, 25, 7), 4);
    }
    FMLInterModComms.sendMessage("OpenBlocks", "donateUrl", "http://www.patreon.com/micdoodle8");
    registerCoreGameScreens();
    GCFluids.registerLegacyFluids();
    GCFluids.registerDispenserBehaviours();
    GalacticraftRegistry.registerGear(Constants.GEAR_ID_OXYGEN_MASK, EnumExtendedInventorySlot.MASK, GCItems.oxMask);
    GalacticraftRegistry.registerGear(Constants.GEAR_ID_OXYGEN_GEAR, EnumExtendedInventorySlot.GEAR, GCItems.oxygenGear);
    GalacticraftRegistry.registerGear(Constants.GEAR_ID_OXYGEN_TANK_LIGHT, EnumExtendedInventorySlot.LEFT_TANK, GCItems.oxTankLight);
    GalacticraftRegistry.registerGear(Constants.GEAR_ID_OXYGEN_TANK_LIGHT, EnumExtendedInventorySlot.RIGHT_TANK, GCItems.oxTankLight);
    GalacticraftRegistry.registerGear(Constants.GEAR_ID_OXYGEN_TANK_MEDIUM, EnumExtendedInventorySlot.LEFT_TANK, GCItems.oxTankMedium);
    GalacticraftRegistry.registerGear(Constants.GEAR_ID_OXYGEN_TANK_MEDIUM, EnumExtendedInventorySlot.RIGHT_TANK, GCItems.oxTankMedium);
    GalacticraftRegistry.registerGear(Constants.GEAR_ID_OXYGEN_TANK_HEAVY, EnumExtendedInventorySlot.LEFT_TANK, GCItems.oxTankHeavy);
    GalacticraftRegistry.registerGear(Constants.GEAR_ID_OXYGEN_TANK_HEAVY, EnumExtendedInventorySlot.RIGHT_TANK, GCItems.oxTankHeavy);
    GalacticraftRegistry.registerGear(Constants.GEAR_ID_OXYGEN_TANK_INFINITE, EnumExtendedInventorySlot.LEFT_TANK, GCItems.oxygenCanisterInfinite);
    GalacticraftRegistry.registerGear(Constants.GEAR_ID_OXYGEN_TANK_INFINITE, EnumExtendedInventorySlot.RIGHT_TANK, GCItems.oxygenCanisterInfinite);
    GalacticraftRegistry.registerGear(Constants.GEAR_ID_PARACHUTE, EnumExtendedInventorySlot.PARACHUTE, GCItems.parachute);
    GalacticraftRegistry.registerGear(Constants.GEAR_ID_FREQUENCY_MODULE, EnumExtendedInventorySlot.FREQUENCY_MODULE, new ItemStack(GCItems.basicItem, 1, 19));
    GalacticraftCore.proxy.registerFluidTexture(GCFluids.fluidOil, new ResourceLocation(Constants.ASSET_PREFIX, "textures/misc/underoil.png"));
    GalacticraftCore.proxy.registerFluidTexture(GCFluids.fluidFuel, new ResourceLocation(Constants.ASSET_PREFIX, "textures/misc/underfuel.png"));
// switch (this.getSlotIndex())
// {
// case 0:
// return itemstack.getItem() instanceof ItemOxygenMask;
// case 1:
// return itemstack.getItem() == GCItems.oxygenGear;
// case 2:
// case 3:
// return itemstack.getItem() instanceof ItemOxygenTank || itemstack.getItem() instanceof ItemCanisterOxygenInfinite;
// case 4:
// return itemstack.getItem() instanceof ItemParaChute;
// case 5:
// return itemstack.getItem() == GCItems.basicItem && itemstack.getItemDamage() == 19;
// case 6:
// return this.thermalArmorSlotValid(itemstack, 0);
// case 7:
// return this.thermalArmorSlotValid(itemstack, 1);
// case 8:
// return this.thermalArmorSlotValid(itemstack, 2);
// case 9:
// return this.thermalArmorSlotValid(itemstack, 3);
// case 10:
// return this.shieldControllerSlotValid(itemstack);
// }
}
Also used : BiomeGenBaseMoon(micdoodle8.mods.galacticraft.core.world.gen.BiomeGenBaseMoon) SchematicMoonBuggy(micdoodle8.mods.galacticraft.core.schematic.SchematicMoonBuggy) ChunkLoadingCallback(micdoodle8.mods.galacticraft.core.world.ChunkLoadingCallback) ResourceLocation(net.minecraft.util.ResourceLocation) SchematicAdd(micdoodle8.mods.galacticraft.core.schematic.SchematicAdd) WorldProvider(net.minecraft.world.WorldProvider) SchematicRocketT1(micdoodle8.mods.galacticraft.core.schematic.SchematicRocketT1) OverworldGenerator(micdoodle8.mods.galacticraft.core.world.gen.OverworldGenerator) AtmosphereInfo(micdoodle8.mods.galacticraft.api.world.AtmosphereInfo) Vector3(micdoodle8.mods.galacticraft.api.vector.Vector3) SpawnListEntry(net.minecraft.world.biome.BiomeGenBase.SpawnListEntry) ConnectionEvents(micdoodle8.mods.galacticraft.core.network.ConnectionEvents) ItemStack(net.minecraft.item.ItemStack) EventHandler(net.minecraftforge.fml.common.Mod.EventHandler)

Example 4 with AtmosphereInfo

use of micdoodle8.mods.galacticraft.api.world.AtmosphereInfo in project Galacticraft by micdoodle8.

the class AsteroidsModule method init.

@Override
public void init(FMLInitializationEvent event) {
    // Set creative tab item to Astro Miner
    ((CreativeTabGC) GalacticraftCore.galacticraftItemsTab).setItemForTab(AsteroidsItems.astroMiner);
    this.registerMicroBlocks();
    SchematicRegistry.registerSchematicRecipe(new SchematicTier3Rocket());
    SchematicRegistry.registerSchematicRecipe(new SchematicAstroMiner());
    GalacticraftCore.packetPipeline.addDiscriminator(7, PacketSimpleAsteroids.class);
    AsteroidsTickHandlerServer eventHandler = new AsteroidsTickHandlerServer();
    MinecraftForge.EVENT_BUS.register(eventHandler);
    this.registerEntities();
    RecipeManagerAsteroids.loadRecipes();
    AsteroidsModule.planetAsteroids = new Planet("asteroids").setParentSolarSystem(GalacticraftCore.solarSystemSol);
    AsteroidsModule.planetAsteroids.setDimensionInfo(ConfigManagerAsteroids.dimensionIDAsteroids, WorldProviderAsteroids.class).setTierRequired(3);
    AsteroidsModule.planetAsteroids.setRelativeDistanceFromCenter(new CelestialBody.ScalableDistance(1.375F, 1.375F)).setRelativeOrbitTime(45.0F).setPhaseShift((float) (Math.random() * (2 * Math.PI)));
    AsteroidsModule.planetAsteroids.setBodyIcon(new ResourceLocation(Constants.ASSET_PREFIX, "textures/gui/celestialbodies/asteroid.png"));
    AsteroidsModule.planetAsteroids.setAtmosphere(new AtmosphereInfo(false, false, false, -1.5F, 0.05F, 0.0F));
    AsteroidsModule.planetAsteroids.addChecklistKeys("equip_oxygen_suit", "craft_grapple_hook", "thermal_padding");
    GalaxyRegistry.registerPlanet(AsteroidsModule.planetAsteroids);
    GalacticraftRegistry.registerTeleportType(WorldProviderAsteroids.class, new TeleportTypeAsteroids());
    HashMap<Integer, ItemStack> input = new HashMap<>();
    ItemStack plateTier3 = new ItemStack(AsteroidsItems.basicItem, 1, 5);
    ItemStack rocketFinsTier2 = new ItemStack(AsteroidsItems.basicItem, 1, 2);
    input.put(1, new ItemStack(AsteroidsItems.heavyNoseCone));
    input.put(2, plateTier3);
    input.put(3, plateTier3);
    input.put(4, plateTier3);
    input.put(5, plateTier3);
    input.put(6, plateTier3);
    input.put(7, plateTier3);
    input.put(8, plateTier3);
    input.put(9, plateTier3);
    input.put(10, plateTier3);
    input.put(11, plateTier3);
    input.put(12, new ItemStack(GCItems.rocketEngine, 1, 1));
    input.put(13, rocketFinsTier2);
    input.put(14, rocketFinsTier2);
    input.put(15, new ItemStack(AsteroidsItems.basicItem, 1, 1));
    input.put(16, new ItemStack(GCItems.rocketEngine, 1, 1));
    input.put(17, rocketFinsTier2);
    input.put(18, rocketFinsTier2);
    input.put(19, null);
    input.put(20, null);
    input.put(21, null);
    GalacticraftRegistry.addT3RocketRecipe(new NasaWorkbenchRecipe(new ItemStack(AsteroidsItems.tier3Rocket, 1, 0), input));
    HashMap<Integer, ItemStack> input2 = new HashMap<Integer, ItemStack>(input);
    input2.put(19, new ItemStack(Blocks.chest));
    input2.put(20, null);
    input2.put(21, null);
    GalacticraftRegistry.addT3RocketRecipe(new NasaWorkbenchRecipe(new ItemStack(AsteroidsItems.tier3Rocket, 1, 1), input2));
    input2 = new HashMap<Integer, ItemStack>(input);
    input2.put(19, null);
    input2.put(20, new ItemStack(Blocks.chest));
    input2.put(21, null);
    GalacticraftRegistry.addT3RocketRecipe(new NasaWorkbenchRecipe(new ItemStack(AsteroidsItems.tier3Rocket, 1, 1), input2));
    input2 = new HashMap<Integer, ItemStack>(input);
    input2.put(19, null);
    input2.put(20, null);
    input2.put(21, new ItemStack(Blocks.chest));
    GalacticraftRegistry.addT3RocketRecipe(new NasaWorkbenchRecipe(new ItemStack(AsteroidsItems.tier3Rocket, 1, 1), input2));
    input2 = new HashMap<Integer, ItemStack>(input);
    input2.put(19, new ItemStack(Blocks.chest));
    input2.put(20, new ItemStack(Blocks.chest));
    input2.put(21, null);
    GalacticraftRegistry.addT3RocketRecipe(new NasaWorkbenchRecipe(new ItemStack(AsteroidsItems.tier3Rocket, 1, 2), input2));
    input2 = new HashMap<Integer, ItemStack>(input);
    input2.put(19, new ItemStack(Blocks.chest));
    input2.put(20, null);
    input2.put(21, new ItemStack(Blocks.chest));
    GalacticraftRegistry.addT3RocketRecipe(new NasaWorkbenchRecipe(new ItemStack(AsteroidsItems.tier3Rocket, 1, 2), input2));
    input2 = new HashMap<Integer, ItemStack>(input);
    input2.put(19, null);
    input2.put(20, new ItemStack(Blocks.chest));
    input2.put(21, new ItemStack(Blocks.chest));
    GalacticraftRegistry.addT3RocketRecipe(new NasaWorkbenchRecipe(new ItemStack(AsteroidsItems.tier3Rocket, 1, 2), input2));
    input2 = new HashMap<Integer, ItemStack>(input);
    input2.put(19, new ItemStack(Blocks.chest));
    input2.put(20, new ItemStack(Blocks.chest));
    input2.put(21, new ItemStack(Blocks.chest));
    GalacticraftRegistry.addT3RocketRecipe(new NasaWorkbenchRecipe(new ItemStack(AsteroidsItems.tier3Rocket, 1, 3), input2));
    input = new HashMap<Integer, ItemStack>();
    input.put(1, new ItemStack(GCItems.heavyPlatingTier1));
    input.put(3, new ItemStack(GCItems.heavyPlatingTier1));
    input.put(5, new ItemStack(GCItems.heavyPlatingTier1));
    input.put(11, new ItemStack(GCItems.heavyPlatingTier1));
    input.put(2, new ItemStack(AsteroidsItems.orionDrive));
    input.put(4, new ItemStack(AsteroidsItems.orionDrive));
    input.put(9, new ItemStack(AsteroidsItems.orionDrive));
    input.put(10, new ItemStack(AsteroidsItems.orionDrive));
    input.put(12, new ItemStack(AsteroidsItems.orionDrive));
    input.put(6, new ItemStack(GCItems.basicItem, 1, 14));
    input.put(7, new ItemStack(Blocks.chest));
    input.put(8, new ItemStack(Blocks.chest));
    input.put(13, new ItemStack(AsteroidsItems.basicItem, 1, 8));
    input.put(14, new ItemStack(GCItems.flagPole));
    GalacticraftRegistry.addAstroMinerRecipe(new NasaWorkbenchRecipe(new ItemStack(AsteroidsItems.astroMiner, 1, 0), input));
    GalacticraftRegistry.registerGear(Constants.GEAR_ID_THERMAL_PADDING_T1_HELMET, EnumExtendedInventorySlot.THERMAL_HELMET, new ItemStack(AsteroidsItems.thermalPadding, 1, 0));
    GalacticraftRegistry.registerGear(Constants.GEAR_ID_THERMAL_PADDING_T1_CHESTPLATE, EnumExtendedInventorySlot.THERMAL_CHESTPLATE, new ItemStack(AsteroidsItems.thermalPadding, 1, 1));
    GalacticraftRegistry.registerGear(Constants.GEAR_ID_THERMAL_PADDING_T1_LEGGINGS, EnumExtendedInventorySlot.THERMAL_LEGGINGS, new ItemStack(AsteroidsItems.thermalPadding, 1, 2));
    GalacticraftRegistry.registerGear(Constants.GEAR_ID_THERMAL_PADDING_T1_BOOTS, EnumExtendedInventorySlot.THERMAL_BOOTS, new ItemStack(AsteroidsItems.thermalPadding, 1, 3));
}
Also used : SchematicTier3Rocket(micdoodle8.mods.galacticraft.planets.asteroids.schematic.SchematicTier3Rocket) NasaWorkbenchRecipe(micdoodle8.mods.galacticraft.core.recipe.NasaWorkbenchRecipe) AtmosphereInfo(micdoodle8.mods.galacticraft.api.world.AtmosphereInfo) AsteroidsTickHandlerServer(micdoodle8.mods.galacticraft.planets.asteroids.tick.AsteroidsTickHandlerServer) HashMap(java.util.HashMap) SchematicAstroMiner(micdoodle8.mods.galacticraft.planets.asteroids.schematic.SchematicAstroMiner) WorldProviderAsteroids(micdoodle8.mods.galacticraft.planets.asteroids.dimension.WorldProviderAsteroids) ResourceLocation(net.minecraft.util.ResourceLocation) CelestialBody(micdoodle8.mods.galacticraft.api.galaxies.CelestialBody) CreativeTabGC(micdoodle8.mods.galacticraft.core.util.CreativeTabGC) TeleportTypeAsteroids(micdoodle8.mods.galacticraft.planets.asteroids.dimension.TeleportTypeAsteroids) Planet(micdoodle8.mods.galacticraft.api.galaxies.Planet) ItemStack(net.minecraft.item.ItemStack)

Aggregations

AtmosphereInfo (micdoodle8.mods.galacticraft.api.world.AtmosphereInfo)4 ItemStack (net.minecraft.item.ItemStack)4 ResourceLocation (net.minecraft.util.ResourceLocation)4 Planet (micdoodle8.mods.galacticraft.api.galaxies.Planet)3 SpawnListEntry (net.minecraft.world.biome.BiomeGenBase.SpawnListEntry)2 HashMap (java.util.HashMap)1 CelestialBody (micdoodle8.mods.galacticraft.api.galaxies.CelestialBody)1 Vector3 (micdoodle8.mods.galacticraft.api.vector.Vector3)1 ConnectionEvents (micdoodle8.mods.galacticraft.core.network.ConnectionEvents)1 NasaWorkbenchRecipe (micdoodle8.mods.galacticraft.core.recipe.NasaWorkbenchRecipe)1 SchematicAdd (micdoodle8.mods.galacticraft.core.schematic.SchematicAdd)1 SchematicMoonBuggy (micdoodle8.mods.galacticraft.core.schematic.SchematicMoonBuggy)1 SchematicRocketT1 (micdoodle8.mods.galacticraft.core.schematic.SchematicRocketT1)1 CreativeTabGC (micdoodle8.mods.galacticraft.core.util.CreativeTabGC)1 ChunkLoadingCallback (micdoodle8.mods.galacticraft.core.world.ChunkLoadingCallback)1 BiomeGenBaseMoon (micdoodle8.mods.galacticraft.core.world.gen.BiomeGenBaseMoon)1 OverworldGenerator (micdoodle8.mods.galacticraft.core.world.gen.OverworldGenerator)1 TeleportTypeAsteroids (micdoodle8.mods.galacticraft.planets.asteroids.dimension.TeleportTypeAsteroids)1 WorldProviderAsteroids (micdoodle8.mods.galacticraft.planets.asteroids.dimension.WorldProviderAsteroids)1 SchematicAstroMiner (micdoodle8.mods.galacticraft.planets.asteroids.schematic.SchematicAstroMiner)1