Search in sources :

Example 1 with TeleportTypeAsteroids

use of micdoodle8.mods.galacticraft.planets.asteroids.dimension.TeleportTypeAsteroids 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

HashMap (java.util.HashMap)1 CelestialBody (micdoodle8.mods.galacticraft.api.galaxies.CelestialBody)1 Planet (micdoodle8.mods.galacticraft.api.galaxies.Planet)1 AtmosphereInfo (micdoodle8.mods.galacticraft.api.world.AtmosphereInfo)1 NasaWorkbenchRecipe (micdoodle8.mods.galacticraft.core.recipe.NasaWorkbenchRecipe)1 CreativeTabGC (micdoodle8.mods.galacticraft.core.util.CreativeTabGC)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 SchematicTier3Rocket (micdoodle8.mods.galacticraft.planets.asteroids.schematic.SchematicTier3Rocket)1 AsteroidsTickHandlerServer (micdoodle8.mods.galacticraft.planets.asteroids.tick.AsteroidsTickHandlerServer)1 ItemStack (net.minecraft.item.ItemStack)1 ResourceLocation (net.minecraft.util.ResourceLocation)1