mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-25 22:44:34 +00:00
Massive recipe cleanup, everything should use oredict properly now
This commit is contained in:
1 parent
70080d9acf
commit
d98be8dd86
11 files changed
+338
-317
No files matched your search
@@ -1,5 +1,11 @@
|
||||
package crazypants.enderio.material;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
public enum MachinePart {
|
||||
|
||||
MACHINE_CHASSI("machineChassi"),
|
||||
@@ -7,10 +13,17 @@ public enum MachinePart {
|
||||
|
||||
public final String unlocalisedName;
|
||||
public final String iconKey;
|
||||
public final String oreDict;
|
||||
|
||||
private MachinePart(String unlocalisedName) {
|
||||
this.unlocalisedName = "enderio." + unlocalisedName;
|
||||
this.iconKey = "enderio:" + unlocalisedName;
|
||||
this.oreDict = "item" + StringUtils.capitalize(unlocalisedName);
|
||||
}
|
||||
|
||||
public static void registerOres(Item item) {
|
||||
for (MachinePart m : values()) {
|
||||
OreDictionary.registerOre(m.oreDict, new ItemStack(item, 1, m.ordinal()));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user