aboutsummaryrefslogtreecommitdiff
path: root/src/Java/miscutil/core/lib/MaterialInfo.java
blob: 4eb930769a7bb78e6c6a5c2d0cdedbf78de684df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
package miscutil.core.lib;

import static miscutil.core.lib.CORE.noItem;
import static miscutil.core.util.item.UtilsItems.getItemStackOfAmountFromOreDict;

import java.util.List;

import net.minecraft.item.ItemStack;

public enum MaterialInfo {
		
	ENERGYCRYSTAL("dustInfusedFire", 8, "dustInfusedEarth", 8, "dustInfusedEntropy", 8, "dustInfusedOrder", 8, "dustEnergyCrystal", 1, noItem, 0),
	BLOODSTEEL(noItem, 0, noItem, 0, noItem, 0, noItem, 0, noItem, 0, noItem, 0),
	STABALLOY("dustTitanium", 1, "dustUranium", 8, noItem, 0, noItem, 0, "dustStaballoy", 1, noItem, 0),
	TANTALLOY60("dustTungsten", 1, "dustTantalum", 8, "dustTinyTitanium", 5, noItem, 0,	"dustTantalloy60", 1, noItem, 0),
	TANTALLOY61("dustTungsten", 1, "dustSmallTitanium", 3,	"dustSmallYttrium", 2, "dustTantalum", 9,	"dustTantalloy61", 1, noItem, 0),
	QUANTUM(noItem, 0, noItem, 0,	noItem, 0, noItem, 0, noItem, 0, noItem, 0),
	TUMBAGA("dustGold", 6, "dustCopper", 3,	noItem, 0, noItem, 0, "dustTumbaga", 2, noItem, 0),
	POTIN("dustBronze", 3, "dustTin", 2, "dustLead", 4, noItem, 0, "dustPotin", 3, noItem, 0),	
	BEDROCKIUM(noItem, 0, noItem, 0, noItem, 0, noItem, 0, noItem, 0, noItem, 0),
	INCONEL625("dustNickel", 5, "dustChrome", 2, "dustWroughtIron", 1, "dustMolybdenum", 1, "dustInconel625", 4, "dustTinyDarkAsh", 1),
	INCONEL690("dustNickel", 5, "dustChrome", 2, "dustNiobium", 1, "dustMolybdenum", 1, "dustInconel690", 2, "dustTinyDarkAsh", 1),
	INCONEL792("dustNickel", 5, "dustChrome", 1, "dustAluminium", 2, "dustNiobium", 1, "dustInconel792", 2, "dustTinyDarkAsh", 1),
	TUNGSTENCARBIDE("dustTungsten", 16, "dustCarbon", 16, noItem, 0, noItem, 0, "dustTungstenCarbide", 4, noItem, 0),
	SILICONCARBIDE("dustSilicon", 16, "dustCarbon", 16, noItem, 0, noItem, 0, "dustSiliconCarbide", 4, noItem, 0),
	ZERON100("dustChrome", 5, "dustSmallNickel", 6, "dustSmallMolybdenum", 3, "dustSteel", 14, "dustZeron100", 5, noItem, 0),
	MARAGING250("dustSteel", 4, "dustNickel", 2, "dustCobalt", 1, "dustTinyTitanium", 1, "dustMaragingSteel250", 6, noItem, 0),
	MARAGING300("dustSteel", 5, "dustNickel", 2, "dustCobalt", 2, "dustSmallTitanium", 1, "dustMaragingSteel300", 5, noItem, 0),
	MARAGING350("dustSteel", 6, "dustNickel", 3, "dustCobalt", 3, "dustTitanium", 1, "dustMaragingSteel350", 4, noItem, 0),
	STELLITE("dustCobalt", 4, "dustChrome", 4, "dustManganese", 2, "dustTitanium", 1, "dustStellite", 2, noItem, 0),
	TALONITE("dustCobalt", 4, "dustChrome", 4, "dustPhosphorus", 1, "dustMolybdenum", 1, "dustTalonite", 2, noItem, 0),
	HASTELLOY_W("dustSmallCobalt", 1, "dustSmallChrome", 4, "dustMolybdenum", 2, "dustNickel", 6, "dustHastelloyW", 2, noItem, 0),
	HASTELLOY_X("dustTinyCobalt", 6, "dustChrome", 2, "dustMolybdenum", 1, "dustNickel", 5, "dustHastelloyX", 2, noItem, 0),
	HASTELLOY_C276("dustSmallCobalt", 1, "dustSmallChrome", 14, "dustSmallMolybdenum", 14, "dustNickel", 5, "dustHastelloyC276", 2, noItem, 0),
	INCOLOY020("dustIron", 4, "dustChrome", 2, "dustTinyCarbon", 2, "dustSmallCopper", 4, "dustIncoloy020", 1, noItem, 0),
	INCOLOYDS("dustIron", 4, "dustChrome", 2, "dustTinyTitanium", 2, "dustSmallManganese", 1, "dustIncoloyDS", 1, noItem, 0),
	INCOLOYMA956("dustIron", 6, "dustChrome", 2, "dustSmallAluminium", 5, "dustTinyYttrium", 1, "dustIncoloyMA956", 1, noItem, 0),
	TANTALUMCARBIDE("dustTantalum", 4, "dustCarbon", 2, noItem, 0, noItem, 0, "dustTantalumCarbide", 1, noItem, 0),
	ZIRCONIUM(noItem, 0, noItem, 0, noItem, 0, noItem, 0, "dustZirconium", 1, noItem, 0),
	ZIRCONIUMCARBIDE("dustZirconium", 2, "dustCarbon", 2, noItem, 0, noItem, 0, "dustZirconiumCarbide", 1, noItem, 0),
	NIOMBIUMCARBIDE("dustNiobium", 2, "dustCarbon", 2, noItem, 0, noItem, 0, "dustNiobiumCarbide", 1, noItem, 0), 
	HASTELLOY_N("dustIron", 1, "dustSmallChrome", 7, "dustSmallMolybdenum", 12, "dustNickel", 4, "dustHastelloyX", 1, noItem, 0);
	
	
	
	private String input1;
	private String input2;
	private String input3;
	private String input4;
	private int inputAmount1;
	private int inputAmount2;
	private int inputAmount3;
	private int inputAmount4;
	private String out1;
	private String out2;
	private int outAmount1;
	private int outAmount2;
	public static List<String> nonLoadedInputs;
	
	private MaterialInfo (
			String inputMaterial_1, int amountIn1,
			String inputMaterial_2, int amountIn2,
			String inputMaterial_3, int amountIn3,
			String inputMaterial_4, int amountIn4,
			String output_A,int amount1, String output_B, int amount2)
	{
		this.input1 = inputMaterial_1;
		this.input2 = inputMaterial_2;
		this.input3 = inputMaterial_3;
		this.input4 = inputMaterial_4;
		this.inputAmount1 = amountIn1;
		this.inputAmount2 = amountIn2;
		this.inputAmount3 = amountIn3;
		this.inputAmount4 = amountIn4;
		this.out1 = output_A;
		this.out2 = output_B;
		this.outAmount1 = amount1;
		this.outAmount2 = amount2;
	}

	public ItemStack[] getInputs() {
		return new ItemStack[]{
				getStack(input1, inputAmount1),
				getStack(input2, inputAmount2), 
				getStack(input3, inputAmount3),
				getStack(input4, inputAmount4)
				};
	}
	
	public ItemStack[] getOutputs() {
		return new ItemStack[]{
				getStack(out1, outAmount1), 
				getStack(out2, outAmount2)
				};
	}
	
	public String[] getInputItemsAsList(){
		String[] inputArray = {
				input1,
				input2,
				input3,
				input4
		};
		return inputArray;
	}
	
	public int[] getInputStackSizesAsList(){
		int[] inputArray = {
				inputAmount1,
				inputAmount2,
				inputAmount3,
				inputAmount4
		};
		return inputArray;
	}
	
	public static ItemStack getStack(String i, int r){
		if (i == ""){
			return null;
		}
		ItemStack temp = getItemStackOfAmountFromOreDict(i,r);
		if (temp.getDisplayName().toLowerCase().contains("tell alkalus")){
			//temp = null;
		}
		return temp;
	}


}