Java Code Examples for net.minecraftforge.fml.common.Loader#isModLoaded()
The following examples show how to use
net.minecraftforge.fml.common.Loader#isModLoaded() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: IGWSupportNotifier.java From IGW-mod with GNU General Public License v2.0 | 6 votes |
/** * Needs to be instantiated somewhere in your mod's loading stage. */ public IGWSupportNotifier(){ if(FMLCommonHandler.instance().getSide() == Side.CLIENT && !Loader.isModLoaded("IGWMod")) { File dir = new File(".", "config"); Configuration config = new Configuration(new File(dir, "IGWMod.cfg")); config.load(); if(config.get(Configuration.CATEGORY_GENERAL, "enable_missing_notification", true, "When enabled, this will notify players when IGW-Mod is not installed even though mods add support.").getBoolean()) { ModContainer mc = Loader.instance().activeModContainer(); String modid = mc.getModId(); List<ModContainer> loadedMods = Loader.instance().getActiveModList(); for(ModContainer container : loadedMods) { if(container.getModId().equals(modid)) { supportingMod = container.getName(); MinecraftForge.EVENT_BUS.register(this); ClientCommandHandler.instance.registerCommand(new CommandDownloadIGW()); break; } } } config.save(); } }
Example 2
Source File: ExNihiloAdscensio.java From ExNihiloAdscensio with MIT License | 6 votes |
@EventHandler public static void init(FMLInitializationEvent event) { OreRegistry.loadJson(new File(configDirectory, "OreRegistry.json")); loadConfigs(); Recipes.init(); OreRegistry.doRecipes(); proxy.initOreModels(); proxy.registerColorHandlers(); FMLInterModComms.sendMessage("Waila", "register", "exnihiloadscensio.compatibility.CompatWaila.callbackRegister"); if (Loader.isModLoaded("theoneprobe") && Config.doTOPCompat) { CompatTOP.init(); } }
Example 3
Source File: GTMod.java From GT-Classic with GNU Lesser General Public License v3.0 | 5 votes |
@Mod.EventHandler public void init(FMLInitializationEvent e) { GTMaterialElement.init(); GTRecipeIterators.init(); GTTileCentrifuge.init(); GTTileUUMAssembler.init(); GTTileMagicEnergyConverter.init(); GTRecipe.initShapeless(); GTRecipe.initItems(); GTRecipe.initBlocks(); GTRecipe.initIC2(); GTRecipe.initIC2Circuits(); GTRecipe.initIC2Jetpacks(); GTRecipe.initIC2Overrides(); GTRecipe.initProcessing(); GTBedrockOreHandler.bedrockOresInit(); GameRegistry.registerWorldGenerator(new GTWorldGen(), 0); MinecraftForge.EVENT_BUS.register(new GTEventOnLivingFall()); MinecraftForge.EVENT_BUS.register(new GTEventLootTableLoad()); MinecraftForge.EVENT_BUS.register(new GTEventCheckSpawn()); MinecraftForge.EVENT_BUS.register(new GTEventEntityViewRenderEvent()); MinecraftForge.EVENT_BUS.register(new GTEventPopulateChunk()); MinecraftForge.EVENT_BUS.register(new GTEventItemTooltip()); if (!Loader.isModLoaded(GTValues.MOD_ID_FASTLEAF)) { MinecraftForge.EVENT_BUS.register(new GTEventNeighborNotifyEvent()); } MinecraftForge.TERRAIN_GEN_BUS.register(new GTEventDecorateBiome()); IC2.saveManager.registerGlobal("IDSU_Storage", GTIDSUStorageManager.class, false); proxy.init(e); }
Example 4
Source File: GTRecipe.java From GT-Classic with GNU Lesser General Public License v3.0 | 5 votes |
public static void initIC2Jetpacks() { if (GTConfig.general.harderJetpacks) { String inputItem = Loader.isModLoaded(GTValues.MOD_ID_GTCX) ? "plateStainlessSteel" : GTValues.INGOT_TITANIUM; int id = IC2.config.getFlag(IC2_STEEL_MODE) ? -1657838234 : 176647782; recipes.overrideRecipe("shaped_item.itemArmorJetpack_" + id, StackUtil.copyWithDamage(Ic2Items.jetpack, 18001), "ICI", "IFI", "R R", 'I', inputItem, 'C', GTValues.CIRCUIT_BASIC, 'F', Ic2Items.fuelCan.copy(), 'R', GTValues.DUST_REDSTONE); id = IC2.config.getFlag(IC2_STEEL_MODE) ? -1370803315 : 463682701; recipes.overrideRecipe("shaped_item.itemArmorJetpackElectric_" + id, GTMaterialGen.getIc2(Ic2Items.electricJetpack), "ICI", "IBI", "G G", 'I', inputItem, 'C', GTValues.CIRCUIT_ADVANCED, 'B', Ic2Items.batBox.copy(), 'G', Items.DRAGON_BREATH); } }
Example 5
Source File: AdvancedRocketry.java From AdvancedRocketry with MIT License | 5 votes |
@EventHandler public void serverStarted(FMLServerStartedEvent event) { for (int dimId : DimensionManager.getInstance().getLoadedDimensions()) { DimensionProperties properties = DimensionManager.getInstance().getDimensionProperties(dimId); if(!properties.isNativeDimension && properties.getId() == zmaster587.advancedRocketry.api.Configuration.MoonId && !Loader.isModLoaded("GalacticraftCore")) { properties.isNativeDimension = true; } } }
Example 6
Source File: ModLoader.java From EmergingTechnology with MIT License | 5 votes |
public static void preInit() { if (initialized) return; ICLoaded = Loader.isModLoaded("ic2"); OCLoaded = Loader.isModLoaded("opencomputers"); CTLoaded = Loader.isModLoaded("crafttweaker"); DDLoaded = Loader.isModLoaded("dumpsterdiving"); ACLoaded = Loader.isModLoaded("alchemistry"); initialized = true; }
Example 7
Source File: CommonProxy.java From Sakura_mod with MIT License | 5 votes |
public void init(FMLInitializationEvent event) { MinecraftForge.ORE_GEN_BUS.register(new WorldGenLoader()); MinecraftForge.TERRAIN_GEN_BUS.register(new WorldGenLoader()); new WorldGenLoader(); TileEntityRegistry.init(); KimonoLoader.Init(); SakuraRecipeRegister.Init(); if(Loader.isModLoaded("tfc")){ TFCCompat.registerTFCFuel(); } network = NetworkRegistry.INSTANCE.newSimpleChannel(SakuraMain.MODID); network.registerMessage(new PacketKeyMessageHandler(),PacketKeyMessage.class,0,Side.SERVER); }
Example 8
Source File: JEIIntegrationManager.java From NotEnoughItems with MIT License | 5 votes |
public static String proxyCallback() { if (Loader.isModLoaded("jei")) { jeiLoaded = true; return JEIProxy.class.getName(); } jeiLoaded = false; return DummyProxy.class.getName(); }
Example 9
Source File: WorldGenLoader.java From Sakura_mod with MIT License | 5 votes |
@SubscribeEvent public void HotSpringGen(Decorate event) { if(Loader.isModLoaded("tfc")) return; BlockPos pos = event.getChunkPos().getBlock(event.getRand().nextInt(16) + 8, 0, event.getRand().nextInt(16) + 8); BlockPos newPos = WorldUtil.findGround(event.getWorld(),pos, true, false, true); Biome biome = event.getWorld().getBiome(pos); if (newPos != null&&event.getWorld().provider instanceof WorldProviderSurface&&biome != Biomes.DESERT && biome != Biomes.DESERT_HILLS && event.getRand().nextFloat() < SakuraConfig.hotspring_weight / 10000.0F) { new WorldGenHotSpring().generate(event.getWorld(), event.getRand(), newPos); } }
Example 10
Source File: RecipeLoader.java From TofuCraftReload with MIT License | 5 votes |
public static void Init() { registerCompressorRecipes(); registerCrasherRecipes(); registerAggregatorRecipe(); if (Loader.isModLoaded("crafttweaker")) { doDelayTask(); } actions = null; }
Example 11
Source File: SakuraRecipeRegister.java From Sakura_mod with MIT License | 4 votes |
private static FluidStack getOil(int amount){ if(Loader.isModLoaded("tfc")) return new FluidStack(FluidsTFC.OLIVE_OIL.get(), amount); return new FluidStack(BlockLoader.FOODOIL_FLUID, amount); }
Example 12
Source File: EnderIOPlugin.java From AgriCraft with MIT License | 4 votes |
@Override public boolean isEnabled() { return Loader.isModLoaded("enderio"); }
Example 13
Source File: ModItems.java From Wizardry with GNU Lesser General Public License v3.0 | 4 votes |
public static void init() { ORB = new ItemOrb(); LEVITATION_ORB = new ItemLevitationOrb(); PEARL_NACRE = new NacrePearlSpell(); RING = new ItemRing(); BOOK = new ItemBook(); MAGIC_WAND = new ItemMagicWand(); SYRINGE = new ItemSyringe(); BOMB = new ItemBomb(); BLACKENED_SPIRIT = new ItemBlackenedSpirit(); JAR_ITEM = new ItemJar(); FAIRY_ITEM = new ItemFairy(); FAIRY_BELL = new ItemFairyBell(); STAFF = new ItemStaff(); FAIRY_WINGS = new ItemFairyWings(); FAIRY_IMBUED_APPLE = new ItemFairyImbuedApple(); FAIRY_DUST = new ItemFairyDust(); DEVIL_DUST = new ItemDevilDust(); SKY_DUST = new ItemSkyDust(); UNICORN_HORN = new ItemUnicornHorn(); UNICORN_DAGGER = new ItemUnicornDagger(); WISDOM_STICK = new ItemWisdomStick(); PEARL_BELT = new ItemPearlBelt(); if (Loader.isModLoaded("baubles")) { CAPE = new ItemCapeBauble(); FAKE_HALO = new ItemFakeHaloBauble(); REAL_HALO = new ItemRealHaloBauble(); CREATIVE_HALO = new ItemCreativeHaloBauble(); } else { CAPE = new ItemCapeChest(); FAKE_HALO = new ItemFakeHaloHead(); REAL_HALO = new ItemRealHaloHead(); CREATIVE_HALO = new ItemCreativeHaloHead(); } }
Example 14
Source File: GTRecipe.java From GT-Classic with GNU Lesser General Public License v3.0 | 4 votes |
public static void initIC2Overrides() { if (!Loader.isModLoaded(GTValues.MOD_ID_GTCX)) { /** Machine casings can take aluminium **/ String machineId = IC2.config.getFlag(IC2_STEEL_MODE) ? "480320652" : "527557260"; recipes.overrideRecipe("shaped_tile.blockmachine_" + machineId, Ic2Items.machine.copy(), "III", "I I", "III", 'I', GTValues.INPUT_INGOT_MACHINE); /** Iridium Plate **/ recipes.overrideRecipe("shaped_item.itemPartIridium_1100834802", GTMaterialGen.getIc2(Ic2Items.iridiumPlate, 1), "IAI", "ADA", "IAI", 'I', "ingotIridium", 'A', Ic2Items.advancedAlloy.copy(), 'D', GTValues.GEM_DIAMOND); /** Making the macerator harder **/ if (GTConfig.general.harderIC2Macerator) { recipes.overrideRecipe("shaped_tile.blockStoneMacerator_-130868445", Ic2Items.stoneMacerator.copy(), "FDF", "DPD", "FBF", 'D', GTValues.GEM_DIAMOND, 'F', Items.FLINT, 'P', Blocks.PISTON, 'B', Blocks.FURNACE); recipes.overrideRecipe("shaped_tile.blockMacerator_127744036", Ic2Items.macerator.copy(), "III", "IMI", "ICI", 'I', GTValues.INGOT_REFINEDIRON, 'M', Ic2Items.stoneMacerator.copy(), 'C', GTValues.CIRCUIT_BASIC); recipes.overrideRecipe("shaped_tile.blockMacerator_2072794668", Ic2Items.macerator.copy(), "FDF", "DMD", "FCF", 'D', GTValues.INPUT_DIAMOND_OR_TUNGSTEN, 'F', Items.FLINT, 'M', GTValues.MACHINE_BASIC, 'C', GTValues.CIRCUIT_BASIC); } if (IC2.config.getFlag("CraftingNuke")) { recipes.overrideRecipe("shaped_tile.blockNuke_-814805840", GTMaterialGen.getIc2(Ic2Items.nuke, 1), "CUC", "RPR", "CUC", 'C', GTValues.CIRCUIT_ADVANCED, 'U', Ic2Items.reactorReEnrichedUraniumRod.copy(), 'P', GTItems.rodPlutonium1, 'R', Ic2Items.reactorReflectorThick.copy()); } /** Mining Laser Recipe **/ recipes.overrideRecipe("shaped_item.itemToolMiningLaser_1732214669", Ic2Items.miningLaser.copy(), "RcB", "AAC", " AA", 'A', Ic2Items.advancedAlloy.copy(), 'C', GTValues.CIRCUIT_ADVANCED, 'c', GTMaterialGen.get(GTItems.heatStorageHelium6, 1), 'R', "gemRuby", 'B', GTValues.INPUT_BATTERY_ADVANCED); /* * Ive dreaded this part for so long, but it appears Speiger lost his mind when * he made these recipes and needs my help to fix them! */ /** Redoing Plasma Core **/ recipes.overrideRecipe("shaped_item.itemPlasmaCore_-1985082214", Ic2Items.plasmaCore.copy(), "XYX", "YCY", "XYX", 'X', GTValues.CRAFTING_SUPERCONDUCTOR, 'Y', GTMaterialGen.getIngot(GTMaterial.Tungsten, 1), 'C', Ic2Items.plasmaCell.copy()); /** Removing the most ugly cable ever to bless modded mc */ int recipeId = IC2.config.getFlag(IC2_STEEL_MODE) ? -1869742241 : 449044295; GTRecipeCraftingHandler.removeRecipe("ic2", "shaped_item.itemPlasmaCable_" + recipeId); /** Quantum Overclocker BS **/ recipes.overrideRecipe("shaped_item.quantumOverclockerUpgrade_-1387578587", Ic2Items.quantumOverclockerUpgrade.copy(), "XHX", "HVH", "XSX", 'X', "ingotTechnetium", 'H', GTItems.heatStorageHelium6, 'V', Ic2Items.overClockerUpgrade.copy(), 'S', GTValues.CRAFTING_SUPERCONDUCTOR); /** PESD Thingy **/ recipes.overrideRecipe("shaped_item.itemPESD_-912043277", Ic2Items.pesd.copy(), "XYX", "YVY", "XYX", 'Y', GTValues.INGOT_TUNGSTEN, 'X', GTValues.BATTERY_ULTIMATE, 'V', Ic2Items.plasmaCore.copy()); /** PESU **/ recipes.overrideRecipe("shaped_tile.blockPesu_281205134", Ic2Items.pesu.copy(), "XYX", "CCC", "XYX", 'X', GTValues.INGOT_TUNGSTEN, 'Y', GTValues.CIRCUIT_MASTER, 'C', Ic2Items.pesd.copy()); /** IV Transformer **/ recipes.overrideRecipe("shaped_tile.blockTransformerIV_1876908464", Ic2Items.transformerIV.copy(), "XYX", "CVB", "XYX", 'X', GTValues.INGOT_TUNGSTEN, 'Y', GTValues.CRAFTING_SUPERCONDUCTOR, 'C', GTValues.CIRCUIT_MASTER, 'V', Ic2Items.transformerEV.copy(), 'B', Ic2Items.pesd); /** Teleporter-Ma-Bob **/ recipes.overrideRecipe("shaped_item.itemPortableTeleporter_-869928001", Ic2Items.portableTeleporter.copy(), "XYX", "XCX", "BNB", 'X', GTValues.INGOT_PLATINUM, 'Y', GTItems.chipData, 'C', GTValues.CIRCUIT_MASTER, 'B', GTValues.BATTERY_ULTIMATE, 'N', Ic2Items.teleporter.copy()); /** Removing the different versions of final wrench **/ GTRecipeCraftingHandler.removeRecipe("ic2", "shaped_item.precisionWrench_-1322002202"); /** * This will make the highest teir wrench craftable after the regular wrench **/ recipes.overrideRecipe("shaped_item.precisionWrench_-1943783685", Ic2Items.precisionWrench.copy(), "XRX", "CVC", "XYX", (new FlagModifier(Ic2Items.precisionWrench.copy(), "Lossless", true)).setUsesInput(), 'X', Ic2Items.advancedCircuit.copy(), 'C', GTValues.INGOT_TUNGSTEN, 'Y', Ic2Items.electricWrench.copy(), 'V', Ic2Items.iridiumPlate.copy(), 'R', GTItems.rockCutter); } /** Thick Reflector Recipe **/ recipes.overrideRecipe("shaped_item.reactorReflectorThick_-1313142365", Ic2Items.reactorReflectorThick.copy(), " P ", "PBP", " P ", 'P', Ic2Items.reactorReflector, 'B', GTMaterialGen.getTube(GTMaterial.Beryllium, 1)); /** MFE with Lithium Batteries **/ recipes.overrideRecipe("shaped_tile.blockMFE_-1307270245", Ic2Items.mfe.copy(), "XYX", "YCY", "XYX", 'C', GTValues.MACHINE_BASIC, 'Y', GTValues.INPUT_BATTERY_ADVANCED, 'X', Ic2Items.doubleInsulatedGoldCable.copy()); recipes.overrideRecipe("shaped_tile.blockMFE_2004107975", Ic2Items.mfe.copy(), "XYX", "YCY", "XYX", 'C', GTValues.MACHINE_BASIC, 'Y', GTValues.INPUT_BATTERY_ADVANCED, 'X', GTMaterialGen.getIc2(Ic2Items.doubleInsulatedBronzeCable, 4)); /** Battery Station Override **/ recipes.overrideRecipe("shaped_tile.blockBatteryBox_214394435", Ic2Items.batteryStation.copy(), "XCX", "VBV", "XYX", 'Y', Ic2Items.transformerEV.copy(), 'C', GTValues.CRAFTING_SUPERCONDUCTOR, 'X', Ic2Items.advMachine.copy(), 'B', GTBlocks.tileComputer, 'V', GTValues.CIRCUIT_MASTER); /** RE Battery **/ recipes.overrideRecipe("shaped_item.itemBatRE_2077392104", GTMaterialGen.getIc2(Ic2Items.battery, 1), " C ", "TRT", "TRT", 'T', GTValues.INGOT_TIN, 'R', GTValues.DUST_REDSTONE, 'C', Ic2Items.copperCable.copy()); /** Energium Crystal Stuff **/ recipes.overrideRecipe("shaped_item.itemBatCrystal_-1564046631", GTMaterialGen.getIc2(Ic2Items.energyCrystal, 1), "RRR", "RDR", "RRR", 'D', GTValues.INPUT_CRYSTAL_LOW, 'R', GTValues.DUST_REDSTONE); /** Lapotron Stuff **/ recipes.overrideRecipe("shaped_item.itemBatLamaCrystal_1330077638", GTMaterialGen.getIc2(Ic2Items.lapotronCrystal, 1), "LCL", "LDL", "LCL", 'D', GTValues.INPUT_CRYSTAL_HIGH, 'C', GTValues.CIRCUIT_BASIC, 'L', GTValues.INPUT_LAPIS_ANY); /** Adding ruby to glass fiber cable **/ recipes.overrideRecipe("shaped_item.itemGlassCable_-542195504", GTMaterialGen.getIc2(Ic2Items.glassFiberCable, 4), "XXX", "CVC", "XXX", 'X', GTValues.BLOCK_GLASS, 'C', GTValues.DUST_REDSTONE, 'V', GTValues.INPUT_CRYSTAL_LOW); recipes.overrideRecipe("shaped_item.itemGlassCable_-410929364", GTMaterialGen.getIc2(Ic2Items.glassFiberCable, 6), "XXX", "CVC", "XXX", 'X', GTValues.BLOCK_GLASS, 'C', GTValues.INPUT_INGOT_SILVER, 'V', GTValues.INPUT_CRYSTAL_LOW); /** Solar Panel **/ if (GTConfig.general.betterIC2SolarRecipes) { recipes.overrideRecipe("shaped_tile.blockSolarGenerator_1093731471", GTMaterialGen.getIc2(Ic2Items.solarPanel, 1), "XYX", "YXY", "CVC", 'V', GTValues.MACHINE_BASIC, 'X', "itemSilicon", 'Y', GTValues.BLOCK_GLASS, 'C', Ic2Items.carbonPlate); recipes.overrideRecipe("shaped_tile.blockSolarGenerator_261816397", GTMaterialGen.getIc2(Ic2Items.solarPanel, 1), "YYY", "XXX", "CVC", 'V', GTValues.MACHINE_BASIC, 'X', "itemSilicon", 'Y', GTValues.BLOCK_GLASS, 'C', Ic2Items.carbonPlate); } }
Example 15
Source File: GTOreDict.java From GT-Classic with GNU Lesser General Public License v3.0 | 4 votes |
public static void init() { // GT Materials for (GTMaterial mat : GTMaterial.values()) { // Iterating through resource blocks if (mat.hasFlag(GTMaterialFlag.BLOCKMETAL) || mat.hasFlag(GTMaterialFlag.BLOCKGEM)) { OreDictionary.registerOre("block" + mat.getDisplayName(), GTMaterialGen.getMaterialBlock(mat, 1)); } // Regular dusts if (mat.hasFlag(GTMaterialFlag.DUST)) { OreDictionary.registerOre("dust" + mat.getDisplayName(), GTMaterialGen.getDust(mat, 1)); } // Gems if (GTMaterial.isGem(mat)) { OreDictionary.registerOre("gem" + mat.getDisplayName(), GTMaterialGen.getGem(mat, 1)); } // Ingots if (mat.hasFlag(GTMaterialFlag.INGOT)) { OreDictionary.registerOre("ingot" + mat.getDisplayName(), GTMaterialGen.getIngot(mat, 1)); } } // Just doing these to make iteration & unification easier in some cases OreDictionary.registerOre("dustGunpowder", Items.GUNPOWDER); OreDictionary.registerOre("bookshelf", Blocks.BOOKSHELF); // Register some missing Ic2c stuff cause Speiger is a bad doge OreDictionary.registerOre("dustNetherrack", Ic2Items.netherrackDust); OreDictionary.registerOre("dustObsidian", Ic2Items.obsidianDust); OreDictionary.registerOre("plateIridiumAlloy", Ic2Items.iridiumPlate); OreDictionary.registerOre("blockCharcoal", Ic2Items.charcoalBlock); OreDictionary.registerOre("logRubber", Ic2Items.rubberWood); OreDictionary.registerOre("dustRareEarth", Ic2Items.rareEarthDust); OreDictionary.registerOre("dustWheat", Ic2Items.flour); if (GTConfig.general.oreDictWroughtIron) { OreDictionary.registerOre("ingotWroughtIron", Ic2Items.refinedIronIngot); } if (!Loader.isModLoaded(GTValues.MOD_ID_GTCX)) { OreDictionary.registerOre("machineBlockBasic", Ic2Items.machine); } OreDictionary.registerOre("machineBlockAdvanced", Ic2Items.advMachine); // Registering Aluminium for idiots GTMaterial aluminium = GTMaterial.Aluminium; OreDictionary.registerOre("blockAluminum", (GTMaterialGen.getMaterialBlock(aluminium, 1))); OreDictionary.registerOre("dustAluminum", (GTMaterialGen.getDust(aluminium, 1))); OreDictionary.registerOre("ingotAluminum", (GTMaterialGen.getIngot(aluminium, 1))); // Chrome and chromium GTMaterial chrome = GTMaterial.Chrome; OreDictionary.registerOre("blockChromium", (GTMaterialGen.getMaterialBlock(chrome, 1))); OreDictionary.registerOre("dustChromium", (GTMaterialGen.getDust(chrome, 1))); OreDictionary.registerOre("ingotChromium", (GTMaterialGen.getIngot(chrome, 1))); // Stuff to fit with how other mods have done it OreDictionary.registerOre("dustEnderEye", (GTMaterialGen.getDust(GTMaterial.EnderEye, 1))); OreDictionary.registerOre("itemSilicon", (GTMaterialGen.getIngot(GTMaterial.Silicon, 1))); OreDictionary.registerOre("dyeCyan", (GTMaterialGen.getDust(GTMaterial.Lazurite, 1))); OreDictionary.registerOre("dyeBlue", (GTMaterialGen.getDust(GTMaterial.Sodalite, 1))); OreDictionary.registerOre("chestIron", (GTMaterialGen.get(GTBlocks.tileCabinet, 1))); // My Ores OreDictionary.registerOre("orePlatinum", (GTMaterialGen.get(GTBlocks.oreSheldonite, 1))); OreDictionary.registerOre("oreSheldonite", (GTMaterialGen.get(GTBlocks.oreSheldonite, 1))); OreDictionary.registerOre("oreIridium", (GTMaterialGen.get(GTBlocks.oreIridium, 1))); OreDictionary.registerOre("oreRuby", (GTMaterialGen.get(GTBlocks.oreRuby, 1))); OreDictionary.registerOre("oreSapphire", (GTMaterialGen.get(GTBlocks.oreSapphire, 1))); OreDictionary.registerOre("oreBauxite", (GTMaterialGen.get(GTBlocks.oreBauxite, 1))); ClassicRecipes.oreRegistry.registerValueableOre(GTBlocks.oreSheldonite, 6); ClassicRecipes.oreRegistry.registerValueableOre(GTBlocks.oreIridium, 7); ClassicRecipes.oreRegistry.registerValueableOre(GTBlocks.oreRuby, 3); ClassicRecipes.oreRegistry.registerValueableOre(GTBlocks.oreSapphire, 3); // My Stuff OreDictionary.registerOre("craftingToolDuctTape", new ItemStack(GTItems.ductTape, 1, OreDictionary.WILDCARD_VALUE)); OreDictionary.registerOre("dyeBrown", GTMaterialGen.getDust(GTMaterial.BrownDye, 1)); OreDictionary.registerOre("pulpWood", GTMaterialGen.getDust(GTMaterial.Wood, 1)); OreDictionary.registerOre("circuitMaster", (GTMaterialGen.get(GTItems.circuitEnergy, 1))); OreDictionary.registerOre("circuitElite", (GTMaterialGen.get(GTItems.circuitData, 1))); OreDictionary.registerOre("circuitStorage", (GTMaterialGen.get(GTItems.chipData, 1))); OreDictionary.registerOre("circuitData", (GTMaterialGen.get(GTItems.chipData, 1))); OreDictionary.registerOre("circuitUltimate", (GTMaterialGen.get(GTItems.orbData, 1))); OreDictionary.registerOre("batteryUltimate", new ItemStack(GTItems.orbEnergy, 1, OreDictionary.WILDCARD_VALUE)); OreDictionary.registerOre("craftingSuperconductor", (GTMaterialGen.get(GTItems.superConductor, 1))); OreDictionary.registerOre("machineBlockElite", (GTMaterialGen.get(GTBlocks.casingHighlyAdvanced, 1))); OreDictionary.registerOre("machineBlockHighlyAdvanced", (GTMaterialGen.get(GTBlocks.casingHighlyAdvanced, 1))); /** Pams Harvestcraft **/ if (!Loader.isModLoaded(GTValues.MOD_ID_HARVESTCRAFT)) { OreDictionary.registerOre("listAllmeatraw", GTMaterialGen.get(Items.PORKCHOP)); OreDictionary.registerOre("listAllmeatcooked", GTMaterialGen.get(Items.COOKED_PORKCHOP)); OreDictionary.registerOre("listAllmeatraw", GTMaterialGen.get(Items.BEEF)); OreDictionary.registerOre("listAllmeatcooked", GTMaterialGen.get(Items.COOKED_BEEF)); OreDictionary.registerOre("listAllfishraw", GTMaterialGen.get(Items.FISH)); OreDictionary.registerOre("listAllfishcooked", GTMaterialGen.get(Items.COOKED_FISH)); OreDictionary.registerOre("listAllmeatraw", GTMaterialGen.get(Items.CHICKEN)); OreDictionary.registerOre("listAllmeatcooked", GTMaterialGen.get(Items.COOKED_CHICKEN)); OreDictionary.registerOre("listAllmeatraw", GTMaterialGen.get(Items.MUTTON)); OreDictionary.registerOre("listAllmeatcooked", GTMaterialGen.get(Items.COOKED_MUTTON)); OreDictionary.registerOre("listAllfruit", GTMaterialGen.get(Items.APPLE)); OreDictionary.registerOre("listAllveggie", GTMaterialGen.get(Blocks.PUMPKIN)); OreDictionary.registerOre("listAllveggie", GTMaterialGen.get(Items.CARROT)); OreDictionary.registerOre("listAllveggie", GTMaterialGen.get(Items.POTATO)); OreDictionary.registerOre("listAllcookie", GTMaterialGen.get(Items.COOKIE)); } }
Example 16
Source File: ActuallyAdditionsPlugin.java From AgriCraft with MIT License | 4 votes |
@Override public boolean isEnabled() { return Loader.isModLoaded(ActuallyAdditionsAPI.MOD_ID); }
Example 17
Source File: GTRecipeMods.java From GT-Classic with GNU Lesser General Public License v3.0 | 4 votes |
public static void postInit() { /** Stuff for people too slow to handle ore dict at the right time **/ GTTileCentrifuge.addRecipe("dustDiamond", 1, 0, GTTileCentrifuge.totalEu(100000), GTMaterialGen.getDust(GTMaterial.Carbon, 64)); if (GTConfig.modcompat.compatBuildcraft && Loader.isModLoaded(GTValues.MOD_ID_BUILDCRAFT)) { // Classic GT Quarry stuff GTRecipeCraftingHandler.removeRecipe(GTValues.MOD_ID_BUILDCRAFT, "quarry"); GTRecipe.recipes.addRecipe(GTMaterialGen.getModItem(GTValues.MOD_ID_BUILDCRAFT, "quarry"), new Object[] { "ICI", "GIG", "DRD", 'I', "gearIron", 'C', "circuitAdvanced", 'G', "gearGold", 'D', "gearDiamond", 'R', Ic2Items.diamondDrill.copy() }); } /** EnderIO **/ if (GTConfig.modcompat.compatEnderIO && Loader.isModLoaded(GTValues.MOD_ID_ENDERIO)) { GTMod.logger.info("Doing EnderIO Things"); TileEntityMacerator.addRecipe("itemPulsatingCrystal", 1, GTMaterialGen.getModMetaItem(GTValues.MOD_ID_ENDERIO, "item_material", 36, 1)); TileEntityMacerator.addRecipe("itemVibrantCrystal", 1, GTMaterialGen.getModMetaItem(GTValues.MOD_ID_ENDERIO, "item_material", 35, 1)); TileEntityMacerator.addRecipe("itemEnderCrystal", 1, GTMaterialGen.getModMetaItem(GTValues.MOD_ID_ENDERIO, "item_material", 37, 1)); TileEntityMacerator.addRecipe("itemPrescientCrystal", 1, GTMaterialGen.getModMetaItem(GTValues.MOD_ID_ENDERIO, "item_material", 34, 1)); TileEntityMacerator.addRecipe("gemQuartz", 1, GTMaterialGen.getModMetaItem(GTValues.MOD_ID_ENDERIO, "item_material", 33, 1)); TileEntityMacerator.addRecipe("gemLapis", 1, GTMaterialGen.getModMetaItem(GTValues.MOD_ID_ENDERIO, "item_material", 32, 1)); TileEntityMacerator.addRecipe("dustBedrock", 1, GTMaterialGen.getModItem(GTValues.MOD_ID_ENDERIO, "block_infinity_fog")); TileEntityMacerator.addRecipe("itemClayedGlowstone", 1, GTMaterialGen.getModItem(GTValues.MOD_ID_ENDERIO, "block_holy_fog")); } /** Ic2 Extras **/ if (GTConfig.modcompat.compatIc2Extras && Loader.isModLoaded(GTValues.MOD_ID_IC2_EXTRAS)) { GTMod.logger.info("Doing IC2 Extras Things"); TileEntityMacerator.addRecipe("crushedUranium", 1, GTMaterialGen.getDust(GTMaterial.Uranium, 1)); TileEntityMacerator.addRecipe("crushedPurifiedUranium", 1, GTMaterialGen.getDust(GTMaterial.Uranium, 1)); GTTileCentrifuge.addRecipe("dustUranium", 22, 0, GTTileCentrifuge.totalEu(250000), GTMaterialGen.getDust(GTMaterial.Tungsten, 1), GTMaterialGen.getModItem(GTValues.MOD_ID_IC2_EXTRAS, "uranium238", 16), GTMaterialGen.getDust(GTMaterial.Plutonium, 1), GTMaterialGen.getDust(GTMaterial.Thorium, 4)); GTTileCentrifuge.addRecipe("dustThorium", 4, 0, GTTileCentrifuge.totalEu(5000), GTMaterialGen.getModItem(GTValues.MOD_ID_IC2_EXTRAS, "thorium232dust", 2)); GTTileCentrifuge.addRecipe("dustThorium232", 2, 0, GTTileCentrifuge.totalEu(5000), GTMaterialGen.getModItem(GTValues.MOD_ID_IC2_EXTRAS, "thorium230dust", 1)); GTRecipe.recipes.addShapelessRecipe(GTMaterialGen.get(GTItems.rodThorium1, 1), GTMaterialGen.getModItem(GTValues.MOD_ID_IC2_EXTRAS, "emptyfuelrod"), GTMaterialGen.getIngot(GTMaterial.Thorium, 1)); GTRecipe.recipes.addShapelessRecipe(GTMaterialGen.get(GTItems.rodPlutonium1, 1), GTMaterialGen.getModItem(GTValues.MOD_ID_IC2_EXTRAS, "emptyfuelrod"), GTMaterialGen.getIngot(GTMaterial.Plutonium, 1)); } else { // If Ic2 Extras is not loaded, run regular recipes macerator.removeRecipe(new RecipeInputOreDict("oreUranium")); TileEntityMacerator.addRecipe("oreUranium", 1, GTMaterialGen.getDust(GTMaterial.Uranium, 2)); TileEntityMacerator.addRecipe(GTMaterialGen.getIc2(Ic2Items.uraniumDrop, 1), GTMaterialGen.getDust(GTMaterial.Uranium, 1)); TileEntityCompressor.addRecipe("dustPlutonium", 1, GTMaterialGen.getIngot(GTMaterial.Plutonium, 1)); GTTileCentrifuge.addCustomRecipe("dustUranium", 22, GTMaterialGen.getIc2(Ic2Items.emptyCell, 16), GTTileCentrifuge.totalEu(250000), GTMaterialGen.getDust(GTMaterial.Tungsten, 1), GTMaterialGen.getIc2(Ic2Items.reactorUraniumRodSingle, 16), GTMaterialGen.getDust(GTMaterial.Plutonium, 1), GTMaterialGen.getDust(GTMaterial.Thorium, 4)); GTTileCentrifuge.addRecipe(GTMaterialGen.getIc2(Ic2Items.reactorNearDepletedUraniumRod, 1), 0, GTTileCentrifuge.totalEu(2500), GTMaterialGen.getIc2(Ic2Items.emptyCell, 1), GTMaterialGen.getDust(GTMaterial.Thorium, 1)); GTRecipe.recipes.addShapelessRecipe(GTMaterialGen.get(GTItems.rodThorium1, 1), GTMaterialGen.getIc2(Ic2Items.emptyCell, 1), GTMaterialGen.getIngot(GTMaterial.Thorium, 1)); GTRecipe.recipes.addShapelessRecipe(GTMaterialGen.get(GTItems.rodPlutonium1, 1), GTMaterialGen.getIc2(Ic2Items.emptyCell, 1), GTMaterialGen.getIngot(GTMaterial.Plutonium, 1)); } /** Immersive Engineering **/ if (GTConfig.modcompat.compatIE && Loader.isModLoaded(GTValues.MOD_ID_IE)) { GTMod.logger.info("Doing Immersive Engineering Things"); GTTileCentrifuge.addRecipe("dustCoke", 8, 0, GTTileCentrifuge.totalEu(7500), GTMaterialGen.getModMetaItem(GTValues.MOD_ID_IE, "material", 18, 1)); } /** Thermal Mods **/ if (GTConfig.modcompat.compatThermal && Loader.isModLoaded(GTValues.MOD_ID_THERMAL)) { GTMod.logger.info("Doing Thermal Expansion Things"); // Adding thermal stuff to fluid gen addFluidGeneratorRecipe("crude_oil", 50000, 10); addFluidGeneratorRecipe("petrotheum", 50000, 12); addFluidGeneratorRecipe("creosote", 5000, 8); addFluidGeneratorRecipe("coal", 50000, 10); addFluidGeneratorRecipe("refined_oil", 150000, 24); addFluidGeneratorRecipe("refined_fuel", 200000, 32); addFluidGeneratorRecipe("seed_oil", 6000, 6); addFluidGeneratorRecipe("tree_oil", 50000, 8); addFluidGeneratorRecipe("refined_biofuel", 100000, 10); // Oil sand stuff GTTileCentrifuge.addRecipe("oreClathrateOilSand", 2, 0, GTTileCentrifuge.totalEu(8000), GTMaterialGen.getModMetaItem(GTValues.MOD_ID_THERMAL, "material", 892, 6), GTMaterialGen.getModMetaItem(GTValues.MOD_ID_THERMAL, "material", 833, 1)); GTTileCentrifuge.addRecipe("oreClathrateOilShale", 2, 0, GTTileCentrifuge.totalEu(8000), GTMaterialGen.getModMetaItem(GTValues.MOD_ID_THERMAL, "material", 892, 6), GTMaterialGen.get(Items.FLINT)); // Macerator Stuff TileEntityMacerator.addRecipe("oreClathrateRedstone", 1, GTMaterialGen.getModMetaItem(GTValues.MOD_ID_THERMAL, "material", 893, 3)); TileEntityMacerator.addRecipe("oreClathrateGlowstone", 1, GTMaterialGen.getModMetaItem(GTValues.MOD_ID_THERMAL, "material", 894, 3)); TileEntityMacerator.addRecipe("oreClathrateEnder", 1, GTMaterialGen.getModMetaItem(GTValues.MOD_ID_THERMAL, "material", 895, 3)); // Just two fun Electrolyzer recipes ClassicRecipes.electrolyzer.addChargeRecipe(GTMaterialGen.getModMetaItem(GTValues.MOD_ID_THERMAL, "bait", 1, 1), GTMaterialGen.getModMetaItem(GTValues.MOD_ID_THERMAL, "bait", 2, 1), 16000, "ThermalBait"); ClassicRecipes.electrolyzer.addChargeRecipe(GTMaterialGen.getModMetaItem(GTValues.MOD_ID_THERMAL, "fertilizer", 1, 1), GTMaterialGen.getModMetaItem(GTValues.MOD_ID_THERMAL, "fertilizer", 2, 1), 16000, "ThermalFertilizer"); } /** Forestry Sub Module, last so bees are always last **/ if (GTConfig.modcompat.compatForestry && Loader.isModLoaded(GTValues.MOD_ID_FORESTRY)) { GTMod.logger.info("Doing Forestry Things"); GTRecipeCraftingHandler.removeRecipe(GTValues.MOD_ID_FORESTRY, "bronze_ingot"); GTTileCentrifuge.addRecipe("gemApatite", 5, 0, GTTileCentrifuge.totalEu(4000), GTMaterialGen.getDust(GTMaterial.Calcite, 4), GTMaterialGen.getDust(GTMaterial.Phosphorus, 1)); GTTileTypeFilter.addOreDictFilter("beeComb"); GTRecipeForestry.notTheBees(); } }
Example 18
Source File: MixinMinecraft.java From VanillaFix with MIT License | 4 votes |
private void runGUILoop(GuiScreen screen) throws IOException { displayGuiScreen(screen); while (running && currentScreen != null && !(currentScreen instanceof GuiMainMenu) && !(Loader.isModLoaded("custommainmenu") && currentScreen instanceof GuiCustom)) { if (Display.isCreated() && Display.isCloseRequested()) System.exit(0); leftClickCounter = 10000; currentScreen.handleInput(); currentScreen.updateScreen(); GlStateManager.pushMatrix(); GlStateManager.clear(16640); framebuffer.bindFramebuffer(true); GlStateManager.enableTexture2D(); GlStateManager.viewport(0, 0, displayWidth, displayHeight); // EntityRenderer.setupOverlayRendering ScaledResolution scaledResolution = new ScaledResolution((Minecraft) (Object) this); GlStateManager.clear(256); GlStateManager.matrixMode(5889); GlStateManager.loadIdentity(); GlStateManager.ortho(0.0D, scaledResolution.getScaledWidth_double(), scaledResolution.getScaledHeight_double(), 0, 1000, 3000); GlStateManager.matrixMode(5888); GlStateManager.loadIdentity(); GlStateManager.translate(0, 0, -2000); GlStateManager.clear(256); int width = scaledResolution.getScaledWidth(); int height = scaledResolution.getScaledHeight(); int mouseX = Mouse.getX() * width / displayWidth; int mouseY = height - Mouse.getY() * height / displayHeight - 1; currentScreen.drawScreen(mouseX, mouseY, 0); framebuffer.unbindFramebuffer(); GlStateManager.popMatrix(); GlStateManager.pushMatrix(); framebuffer.framebufferRender(displayWidth, displayHeight); GlStateManager.popMatrix(); updateDisplay(); Thread.yield(); Display.sync(60); checkGLError("VanillaFix GUI Loop"); } }
Example 19
Source File: GTRecipe.java From GT-Classic with GNU Lesser General Public License v3.0 | 4 votes |
public static void initItems() { if (!Loader.isModLoaded(GTValues.MOD_ID_GTCX)) { /** Rock Cutter **/ recipes.addRecipe(GTMaterialGen.get(GTItems.rockCutter, 1), "DI ", "DI ", "DCB", new EnchantmentModifier(GTMaterialGen.get(GTItems.rockCutter), Enchantments.SILK_TOUCH).setUsesInput(), 'D', GTValues.GEM_DIAMOND, 'I', GTValues.INGOT_REFINEDIRON, 'C', GTValues.CIRCUIT_BASIC, 'B', Ic2Items.battery.copy()); /** Jack Hammer **/ recipes.addRecipe(GTMaterialGen.get(GTItems.jackHammer, 1), "IBI", " C ", " D ", 'I', GTValues.INGOT_TUNGSTEN, 'C', GTValues.CIRCUIT_BASIC, 'B', Ic2Items.battery.copy(), 'D', GTValues.GEM_DIAMOND); /** Lithium Battery **/ recipes.addRecipe(GTMaterialGen.get(GTItems.lithiumBattery, 1), " G ", "ALA", "ALA", 'G', Ic2Items.goldCable.copy(), 'A', GTValues.INGOT_ALUMINIUM, 'L', "dustLithium"); /** Lithium BatPack **/ recipes.addRecipe(GTMaterialGen.get(GTItems.lithiumBatpack, 1), "LCL", "LAL", "L L", 'C', GTValues.CIRCUIT_ADVANCED, 'A', GTValues.INGOT_ALUMINIUM, 'L', GTItems.lithiumBattery); /** Data Chip **/ recipes.addRecipe(GTMaterialGen.get(GTItems.chipData, 4), "EEE", "ECE", "EEE", 'E', "gemEmerald", 'C', GTValues.CIRCUIT_ADVANCED); /** Data Orb **/ recipes.addRecipe(GTMaterialGen.get(GTItems.orbData, 4), "SSS", "SCS", "SSS", 'S', "circuitElite", 'C', GTValues.CIRCUIT_DATA); /** Portable Scanner **/ recipes.addRecipe(GTMaterialGen.get(GTItems.portableScanner, 1), "PEP", "CFC", "PBP", 'P', GTValues.INGOT_ALUMINIUM, 'E', GTMaterialGen.getIc2(Ic2Items.euReader, 1), 'F', GTMaterialGen.getIc2(Ic2Items.cropAnalyzer, 1), 'C', GTValues.CIRCUIT_ADVANCED, 'B', GTMaterialGen.get(GTItems.lithiumBattery)); /** Empty Spray Can **/ recipes.addRecipe(GTMaterialGen.get(GTItems.sprayCanEmpty), "R", "C", 'C', Ic2Items.emptyCell, 'R', GTValues.DUST_REDSTONE); /** Energy Control Circuit **/ recipes.addRecipe(GTMaterialGen.get(GTItems.circuitEnergy, 4), "CLC", "LPL", "CLC", 'L', Ic2Items.lapotronCrystal.copy(), 'C', GTValues.CIRCUIT_ADVANCED, 'P', GTValues.PLATE_IRIDIUM_ALLOY); /** Super Conductor **/ recipes.addRecipe(GTMaterialGen.get(GTItems.superConductor, 4), "CCC", "WPW", "EEE", 'C', GTValues.INPUT_COOLANT_SUPERCONDUCTOTR, 'E', GTValues.CIRCUIT_MASTER, 'W', GTValues.INGOT_TUNGSTEN, 'P', GTValues.PLATE_IRIDIUM_ALLOY); /** Magnifying Glass **/ recipes.addRecipe(GTMaterialGen.get(GTItems.magnifyingGlass), " P", "S ", 'P', "paneGlass", 'S', GTValues.STICK_WOOD); /** Cloaking Device **/ recipes.addRecipe(GTMaterialGen.get(GTItems.cloakingDevice, 1), "IPI", "POP", "IPI", 'I', GTValues.INGOT_CHROME, 'P', GTValues.PLATE_IRIDIUM_ALLOY, 'O', GTValues.BATTERY_ULTIMATE); /** Forcfield **/ recipes.addRecipe(GTMaterialGen.get(GTItems.forceField, 1), "IPI", "POP", "IPI", 'I', GTValues.INGOT_TUNGSTEN, 'P', GTValues.CIRCUIT_ELITE, 'O', GTValues.BATTERY_ULTIMATE); /** Electro Magnet **/ recipes.addRecipe(GTMaterialGen.get(GTItems.electroMagnet, 1), "M M", "WMW", "IBI", 'M', Ic2Items.magnet, 'B', Ic2Items.battery, 'I', GTValues.INGOT_REFINEDIRON, 'W', Ic2Items.copperCable); /** Tesla Staff **/ recipes.addRecipe(GTMaterialGen.get(GTItems.teslaStaff, 1), " SL", " PS", "P ", 'L', GTValues.BATTERY_ULTIMATE, 'S', GTValues.CRAFTING_SUPERCONDUCTOR, 'P', GTValues.PLATE_IRIDIUM_ALLOY); /** Spring Boots **/ recipes.addRecipe(GTMaterialGen.get(GTItems.springBoots, 1), "IBI", "I I", 'B', Ic2Items.compositeBoots.copy(), 'I', GTValues.INGOT_REFINEDIRON); /** Destructo Pack **/ recipes.addRecipe(GTMaterialGen.get(GTItems.destructoPack, 1), "CIC", "ILI", "CIC", 'L', GTValues.FS_LAVA, 'C', GTValues.CIRCUIT_BASIC, 'I', GTValues.INGOT_REFINEDIRON); } /** Test Tube **/ recipes.addRecipe(GTMaterialGen.get(GTItems.testTube, 32), "G G", "G G", " G ", 'G', GTValues.BLOCK_GLASS); /** Sulfur Torches **/ recipes.addRecipe(GTMaterialGen.get(Blocks.TORCH, 3), "R", "I", 'I', GTValues.STICK_WOOD, 'R', GTValues.DUST_SULFUR); /** Flint Mortar **/ recipes.addRecipe(GTMaterialGen.get(GTBlocks.flintMortar), " F ", "BFB", "BBB", 'F', Items.FLINT, 'B', "plankWood"); /** Iron Mortar **/ recipes.addRecipe(GTMaterialGen.get(GTBlocks.ironMortar, 1), " I ", "BIB", "BBB", 'I', GTValues.INPUT_INGOT_ANYIRON, 'B', "stone"); /** Helium Coolant **/ recipes.addRecipe(GTMaterialGen.get(GTItems.heatStorageHelium1, 1), " I ", "IHI", " I ", 'I', GTValues.INGOT_TIN, 'H', GTMaterialGen.getTube(GTMaterial.Helium, 1)); recipes.addRecipe(GTMaterialGen.get(GTItems.heatStorageHelium3, 1), "III", "HHH", "III", 'I', GTValues.INGOT_TIN, 'H', GTItems.heatStorageHelium1); recipes.addRecipe(GTMaterialGen.get(GTItems.heatStorageHelium6, 1), "IHI", "IPI", "IHI", 'I', GTValues.INGOT_TIN, 'H', GTItems.heatStorageHelium3, 'P', Ic2Items.denseCopperPlate); /** Data Control Circuit **/ recipes.addRecipe(GTMaterialGen.get(GTItems.circuitData, 4), "CDC", "DPD", "CDC", 'D', GTValues.CIRCUIT_DATA, 'C', GTValues.CIRCUIT_ADVANCED, 'P', GTValues.PLATE_IRIDIUM_ALLOY); /** Lapotronic Energy Orb **/ recipes.addRecipe(GTMaterialGen.get(GTItems.orbEnergy, 1), "LLL", "LPL", "LLL", 'L', Ic2Items.lapotronCrystal.copy(), 'P', GTValues.PLATE_IRIDIUM_ALLOY); /** Lapotron Batpack **/ recipes.addRecipe(GTMaterialGen.get(GTItems.lapotronPack, 1), "ELE", "SBS", "EPE", 'E', GTValues.CIRCUIT_MASTER, 'S', GTValues.CRAFTING_SUPERCONDUCTOR, 'L', GTValues.BATTERY_ULTIMATE, 'B', GTItems.lithiumBatpack, 'P', GTValues.PLATE_IRIDIUM_ALLOY); /** Echotron **/ recipes.addRecipe(GTMaterialGen.get(GTItems.echotron, 1), " C ", "CEC", " C ", 'E', GTBlocks.tileEchotron, 'C', GTValues.CIRCUIT_DATA); /** Thorium rods **/ recipes.addRecipe(GTMaterialGen.get(GTItems.rodThorium2), "UCU", 'U', GTItems.rodThorium1, 'C', Ic2Items.denseCopperPlate.copy()); recipes.addRecipe(GTMaterialGen.get(GTItems.rodThorium4), " U ", "CCC", " U ", 'U', GTItems.rodThorium2, 'C', Ic2Items.denseCopperPlate.copy()); recipes.addRecipe(GTMaterialGen.get(GTItems.rodThorium4), "UCU", "CCC", "UCU", 'U', GTItems.rodThorium1, 'C', Ic2Items.denseCopperPlate.copy()); /** Plutonium Rod **/ recipes.addRecipe(GTMaterialGen.get(GTItems.rodPlutonium2), "UCU", 'U', GTItems.rodPlutonium1, 'C', Ic2Items.denseCopperPlate.copy()); recipes.addRecipe(GTMaterialGen.get(GTItems.rodPlutonium4), " U ", "CCC", " U ", 'U', GTItems.rodPlutonium2, 'C', Ic2Items.denseCopperPlate.copy()); recipes.addRecipe(GTMaterialGen.get(GTItems.rodPlutonium4), "UCU", "CCC", "UCU", 'U', GTItems.rodPlutonium1, 'C', Ic2Items.denseCopperPlate.copy()); }
Example 20
Source File: ModValidator.java From AgriCraft with MIT License | 4 votes |
@Override public boolean isValidMod(String modid) { return modid.equals("minecraft") || Loader.isModLoaded(modid); }