mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-18 11:29:23 +00:00
[ci skip] spotlessApply with the new settings
This commit is contained in:
1 parent
07f445757b
commit
91bf137a94
809 files changed
+6761
-5793
No files matched your search
@@ -1,5 +1,12 @@
|
||||
package binnie.genetics.item;
|
||||
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.oredict.ShapedOreRecipe;
|
||||
import net.minecraftforge.oredict.ShapelessOreRecipe;
|
||||
|
||||
import binnie.Binnie;
|
||||
import binnie.botany.Botany;
|
||||
import binnie.core.BinnieCore;
|
||||
@@ -13,14 +20,9 @@ import binnie.genetics.Genetics;
|
||||
import binnie.genetics.GeneticsCreativeTab;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import forestry.api.recipes.RecipeManagers;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.oredict.ShapedOreRecipe;
|
||||
import net.minecraftforge.oredict.ShapelessOreRecipe;
|
||||
|
||||
public class ModuleItem implements IInitializable {
|
||||
|
||||
public static BinnieIcon iconNight;
|
||||
public static BinnieIcon iconDaytime;
|
||||
public static BinnieIcon iconAllDay;
|
||||
@@ -71,67 +73,73 @@ public class ModuleItem implements IInitializable {
|
||||
|
||||
@Override
|
||||
public void postInit() {
|
||||
GameRegistry.addShapelessRecipe(
|
||||
GeneticsItems.DNADye.get(8), Items.glowstone_dust, new ItemStack(Items.dye, 1, 5));
|
||||
GameRegistry
|
||||
.addShapelessRecipe(GeneticsItems.DNADye.get(8), Items.glowstone_dust, new ItemStack(Items.dye, 1, 5));
|
||||
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(
|
||||
GeneticsItems.LaboratoryCasing.get(1),
|
||||
new Object[] {"iii", "iYi", "iii", 'i', "ingotIron", 'Y', Mods.forestry.item("sturdyMachine")}));
|
||||
GameRegistry.addRecipe(
|
||||
new ShapedOreRecipe(
|
||||
GeneticsItems.LaboratoryCasing.get(1),
|
||||
new Object[] { "iii", "iYi", "iii", 'i', "ingotIron", 'Y',
|
||||
Mods.forestry.item("sturdyMachine") }));
|
||||
|
||||
GameRegistry.addRecipe(new ShapelessOreRecipe(
|
||||
GeneticsItems.DNADye.get(2), new Object[] {"dyePurple", "dyeMagenta", "dyePink"}));
|
||||
GameRegistry.addRecipe(
|
||||
new ShapelessOreRecipe(
|
||||
GeneticsItems.DNADye.get(2),
|
||||
new Object[] { "dyePurple", "dyeMagenta", "dyePink" }));
|
||||
|
||||
GameRegistry.addRecipe(new ShapelessOreRecipe(
|
||||
GeneticsItems.FluorescentDye.get(2), new Object[] {"dyeOrange", "dyeYellow", "dustGlowstone"}));
|
||||
GameRegistry.addRecipe(
|
||||
new ShapelessOreRecipe(
|
||||
GeneticsItems.FluorescentDye.get(2),
|
||||
new Object[] { "dyeOrange", "dyeYellow", "dustGlowstone" }));
|
||||
|
||||
GameRegistry.addRecipe(new ShapelessOreRecipe(
|
||||
GeneticsItems.GrowthMedium.get(2), new Object[] {new ItemStack(Items.dye, 1, 15), Items.sugar}));
|
||||
GameRegistry.addRecipe(
|
||||
new ShapelessOreRecipe(
|
||||
GeneticsItems.GrowthMedium.get(2),
|
||||
new Object[] { new ItemStack(Items.dye, 1, 15), Items.sugar }));
|
||||
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(
|
||||
GeneticsItems.EmptySequencer.get(1),
|
||||
new Object[] {" p ", "iGi", " p ", 'i', "ingotGold", 'G', Blocks.glass_pane, 'p', Items.paper}));
|
||||
GameRegistry.addRecipe(
|
||||
new ShapedOreRecipe(
|
||||
GeneticsItems.EmptySequencer.get(1),
|
||||
new Object[] { " p ", "iGi", " p ", 'i', "ingotGold", 'G', Blocks.glass_pane, 'p',
|
||||
Items.paper }));
|
||||
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(
|
||||
GeneticsItems.EmptySerum.get(1),
|
||||
new Object[] {" g ", " G ", "GGG", 'g', "ingotGold", 'G', Blocks.glass_pane}));
|
||||
GameRegistry.addRecipe(
|
||||
new ShapedOreRecipe(
|
||||
GeneticsItems.EmptySerum.get(1),
|
||||
new Object[] { " g ", " G ", "GGG", 'g', "ingotGold", 'G', Blocks.glass_pane }));
|
||||
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(
|
||||
GeneticsItems.EmptyGenome.get(1),
|
||||
new Object[] {"sss", "sss", "sss", 's', GeneticsItems.EmptySerum.get(1)}));
|
||||
GameRegistry.addRecipe(
|
||||
new ShapedOreRecipe(
|
||||
GeneticsItems.EmptyGenome.get(1),
|
||||
new Object[] { "sss", "sss", "sss", 's', GeneticsItems.EmptySerum.get(1) }));
|
||||
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(
|
||||
GeneticsItems.Cylinder.get(8), new Object[] {" g ", "g g", " ", 'g', Blocks.glass_pane}));
|
||||
GameRegistry.addRecipe(
|
||||
new ShapedOreRecipe(
|
||||
GeneticsItems.Cylinder.get(8),
|
||||
new Object[] { " g ", "g g", " ", 'g', Blocks.glass_pane }));
|
||||
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(GeneticsItems.IntegratedCircuit.get(1), new Object[] {
|
||||
"l g",
|
||||
" c ",
|
||||
"g l",
|
||||
'c',
|
||||
Mods.forestry.stack("chipsets", 1, 1),
|
||||
'l',
|
||||
new ItemStack(Items.dye, 1, 4),
|
||||
'g',
|
||||
"dustGlowstone"
|
||||
}));
|
||||
GameRegistry.addRecipe(
|
||||
new ShapedOreRecipe(
|
||||
GeneticsItems.IntegratedCircuit.get(1),
|
||||
new Object[] { "l g", " c ", "g l", 'c', Mods.forestry.stack("chipsets", 1, 1), 'l',
|
||||
new ItemStack(Items.dye, 1, 4), 'g', "dustGlowstone" }));
|
||||
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(GeneticsItems.IntegratedCircuit.get(1), new Object[] {
|
||||
"g l",
|
||||
" c ",
|
||||
"l g",
|
||||
'c',
|
||||
Mods.forestry.stack("chipsets", 1, 1),
|
||||
'l',
|
||||
new ItemStack(Items.dye, 1, 4),
|
||||
'g',
|
||||
"dustGlowstone"
|
||||
}));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(GeneticsItems.IntegratedCasing.get(1), new Object[] {
|
||||
"ccc", "cdc", "ccc", 'c', GeneticsItems.IntegratedCircuit.get(1), 'd', GeneticsItems.LaboratoryCasing.get(1)
|
||||
}));
|
||||
GameRegistry.addRecipe(
|
||||
new ShapedOreRecipe(
|
||||
GeneticsItems.IntegratedCircuit.get(1),
|
||||
new Object[] { "g l", " c ", "l g", 'c', Mods.forestry.stack("chipsets", 1, 1), 'l',
|
||||
new ItemStack(Items.dye, 1, 4), 'g', "dustGlowstone" }));
|
||||
GameRegistry.addRecipe(
|
||||
new ShapedOreRecipe(
|
||||
GeneticsItems.IntegratedCasing.get(1),
|
||||
new Object[] { "ccc", "cdc", "ccc", 'c', GeneticsItems.IntegratedCircuit.get(1), 'd',
|
||||
GeneticsItems.LaboratoryCasing.get(1) }));
|
||||
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(
|
||||
GeneticsItems.IntegratedCPU.get(1),
|
||||
new Object[] {"ccc", "cdc", "ccc", 'c', GeneticsItems.IntegratedCircuit.get(1), 'd', Items.diamond}));
|
||||
GameRegistry.addRecipe(
|
||||
new ShapedOreRecipe(
|
||||
GeneticsItems.IntegratedCPU.get(1),
|
||||
new Object[] { "ccc", "cdc", "ccc", 'c', GeneticsItems.IntegratedCircuit.get(1), 'd',
|
||||
Items.diamond }));
|
||||
|
||||
RecipeManagers.carpenterManager.addRecipe(
|
||||
100,
|
||||
@@ -167,15 +175,17 @@ public class ModuleItem implements IInitializable {
|
||||
// item you but a diamond seems reasonable
|
||||
// theoretically similar checks could be performed for Apiculture and Arboriculture; but I will leave that to
|
||||
// the mod owner to decide
|
||||
Item flutterlyzer = BinnieCore.isLepidopteryActive()
|
||||
? Mods.forestry.item("flutterlyzer") // grab the forestry flutterlyzer ONLY IF lepidopterology is active
|
||||
Item flutterlyzer = BinnieCore.isLepidopteryActive() ? Mods.forestry.item("flutterlyzer") // grab the forestry
|
||||
// flutterlyzer ONLY
|
||||
// IF lepidopterology
|
||||
// is active
|
||||
: Items.diamond; // otherwise just replace it with another diamond
|
||||
|
||||
ItemStack circuit = GeneticsItems.IntegratedCircuit.get(1); // get a reference to Integrated circuit
|
||||
Item diamond = Items.diamond; // save a reference to diamond
|
||||
|
||||
ItemStack analyst =
|
||||
new ItemStack(Genetics.analyst); // save a reference to the analyst, will make the next bit easier
|
||||
ItemStack analyst = new ItemStack(Genetics.analyst); // save a reference to the analyst, will make the next bit
|
||||
// easier
|
||||
|
||||
// the following code is a sufficient replacement for the 3 nested loops that preceded it; arguably this is
|
||||
// still
|
||||
@@ -288,9 +298,10 @@ public class ModuleItem implements IInitializable {
|
||||
|
||||
// do a check to ensure that the butterfly module is enabled before using the butterfly dictionary.
|
||||
// a similar check could be done for arboriculture and apiculture as well, but that is left to the mod owner
|
||||
Item lepiDb = BinnieCore.isLepidopteryActive()
|
||||
? ExtraTrees.itemDictionaryLepi
|
||||
: Items.diamond; // just use a diamond if Butterflies is disabled
|
||||
Item lepiDb = BinnieCore.isLepidopteryActive() ? ExtraTrees.itemDictionaryLepi : Items.diamond; // just use a
|
||||
// diamond if
|
||||
// Butterflies
|
||||
// is disabled
|
||||
// going to use the circuit reference above as well
|
||||
|
||||
// as above, there are only 24 permutations here; let's find a way to just get those recipes rather than trying
|
||||
@@ -298,12 +309,9 @@ public class ModuleItem implements IInitializable {
|
||||
if (BinnieCore.isBotanyActive() && BinnieCore.isExtraBeesActive() && BinnieCore.isExtraTreesActive()) {
|
||||
// 24 full recipe lines is a bit much to maintain; so we'll use a loop here, but we're only going
|
||||
// to run it 24 times. Start by making an array of all 24 valid dictionary permutations...
|
||||
String[] permutations = new String[] {
|
||||
"btlf", "btfl", "bltf", "blft", "bftl", "bflt",
|
||||
"tblf", "tbfl", "tlbf", "tlfb", "tfbl", "tflb",
|
||||
"lbtf", "lbft", "ltbf", "ltfb", "lfbt", "lftb",
|
||||
"fbtl", "fblt", "ftbl", "ftlb", "flbt", "fltb"
|
||||
};
|
||||
String[] permutations = new String[] { "btlf", "btfl", "bltf", "blft", "bftl", "bflt", "tblf", "tbfl",
|
||||
"tlbf", "tlfb", "tfbl", "tflb", "lbtf", "lbft", "ltbf", "ltfb", "lfbt", "lftb", "fbtl", "fblt",
|
||||
"ftbl", "ftlb", "flbt", "fltb" };
|
||||
|
||||
// now go through each of the permutations and create a recipe
|
||||
for (String p : permutations) {
|
||||
|
||||
Reference in new issue
Block a user