use of micdoodle8.mods.galacticraft.core.util.CreativeTabGC in project Galacticraft by micdoodle8.
the class GalacticraftCore method preInit.
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
GCCapabilities.register();
this.initModInfo(event.getModMetadata());
isPlanetsLoaded = Loader.isModLoaded(Constants.MOD_ID_PLANETS);
GCCoreUtil.nextID = 0;
if (CompatibilityManager.isSmartMovingLoaded || CompatibilityManager.isWitcheryLoaded) {
isHeightConflictingModInstalled = true;
}
MinecraftForge.EVENT_BUS.register(new EventHandlerGC());
handler = new GCPlayerHandler();
MinecraftForge.EVENT_BUS.register(handler);
GalacticraftCore.proxy.preInit(event);
ConnectionPacket.bus = NetworkRegistry.INSTANCE.newEventDrivenChannel(ConnectionPacket.CHANNEL);
ConnectionPacket.bus.register(new ConnectionPacket());
ConfigManagerCore.initialize(new File(event.getModConfigurationDirectory(), Constants.CONFIG_FILE));
EnergyConfigHandler.setDefaultValues(new File(event.getModConfigurationDirectory(), Constants.POWER_CONFIG_FILE));
ChunkLoadingCallback.loadConfig(new File(event.getModConfigurationDirectory(), Constants.CHUNKLOADER_CONFIG_FILE));
GalacticraftCore.galacticraftBlocksTab = new CreativeTabGC(CreativeTabs.getNextID(), "galacticraft_blocks", null, 0, null);
GalacticraftCore.galacticraftItemsTab = new CreativeTabGC(CreativeTabs.getNextID(), "galacticraft_items", null, 0, null);
GCFluids.registerOilandFuel();
if (CompatibilityManager.PlayerAPILoaded) {
ServerPlayerAPI.register(Constants.MOD_ID_CORE, GCPlayerBaseMP.class);
}
GCBlocks.initBlocks();
GCItems.initItems();
proxy.registerVariants();
GCFluids.registerFluids();
// Force initialisation of GC biome types in preinit (after config load) - this helps BiomeTweaker by initialising mod biomes in a fixed order during mod loading
BiomeGenBase biomeOrbitPreInit = BiomeGenBaseOrbit.space;
BiomeGenBase biomeMoonPreInit = BiomeGenBaseMoon.moonFlat;
}
use of micdoodle8.mods.galacticraft.core.util.CreativeTabGC 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));
}
Aggregations