Redo all Industrial Grinder recipes, and move them to a separate class (Here starts the great recipe cleanup of 2017!)
This commit is contained in:
parent
9b73f20ad0
commit
c24116e259
8 changed files with 270 additions and 1056 deletions
|
@ -19,7 +19,7 @@ public class ItemDusts extends ItemTRNoDestroy {
|
|||
"nickel", "obsidian", "peridot", "phosphorous", "platinum", "pyrite", "pyrope", "red_garnet", ModItems.META_PLACEHOLDER,
|
||||
"ruby", "saltpeter", "sapphire", "saw_dust", "silver", "sodalite", "spessartine", "sphalerite", "steel",
|
||||
"sulfur", "tin", "titanium", "tungsten", "uvarovite", ModItems.META_PLACEHOLDER, "yellow_garnet", "zinc",
|
||||
"olivine", "andesite", "diorite", "granite" };
|
||||
ModItems.META_PLACEHOLDER, "andesite", "diorite", "granite" };
|
||||
|
||||
public ItemDusts() {
|
||||
setUnlocalizedName("techreborn.dust");
|
||||
|
|
|
@ -19,7 +19,7 @@ public class ItemDustsSmall extends ItemTRNoDestroy {
|
|||
"nickel", "obsidian", "peridot", "phosphorous", "platinum", "pyrite", "pyrope", "red_garnet", ModItems.META_PLACEHOLDER,
|
||||
"ruby", "saltpeter", "sapphire", "saw_dust", "silver", "sodalite", "spessartine", "sphalerite", "steel",
|
||||
"sulfur", "tin", "titanium", "tungsten", "uvarovite", ModItems.META_PLACEHOLDER, "yellow_garnet", "zinc",
|
||||
"olivine", "redstone", "glowstone", "andesite", "diorite", "granite" };
|
||||
ModItems.META_PLACEHOLDER, "redstone", "glowstone", "andesite", "diorite", "granite" };
|
||||
|
||||
public ItemDustsSmall() {
|
||||
setUnlocalizedName("techreborn.dustsmall");
|
||||
|
|
|
@ -15,7 +15,7 @@ public class ItemPlates extends ItemTRNoDestroy {
|
|||
|
||||
//Vanilla plates or plates not from ingots or gems
|
||||
public static String[] types = new String[] {
|
||||
"iron", "gold", "carbon", "wood", "redstone", "diamond", "emerald", "lapis", "coal", "obsidian", "lazurite"
|
||||
"iron", "gold", "carbon", "wood", "redstone", "diamond", "emerald", ModItems.META_PLACEHOLDER, "coal", "obsidian", "lazurite"
|
||||
};
|
||||
|
||||
public ItemPlates() {
|
||||
|
@ -28,6 +28,9 @@ public class ItemPlates extends ItemTRNoDestroy {
|
|||
name = CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, name);
|
||||
for (int i = 0; i < types.length; i++) {
|
||||
if (types[i].equalsIgnoreCase(name)) {
|
||||
if (types[i].equals(ModItems.META_PLACEHOLDER)) {
|
||||
throw new InvalidParameterException("The dust " + name + " could not be found.");
|
||||
}
|
||||
return new ItemStack(ModItems.plate, count, i);
|
||||
}
|
||||
}
|
||||
|
@ -66,7 +69,9 @@ public class ItemPlates extends ItemTRNoDestroy {
|
|||
// Adds Dusts SubItems To Creative Tab
|
||||
public void getSubItems(Item item, CreativeTabs creativeTabs, NonNullList list) {
|
||||
for (int meta = 0; meta < types.length; ++meta) {
|
||||
list.add(new ItemStack(item, 1, meta));
|
||||
if (!types[meta].equals(ModItems.META_PLACEHOLDER)) {
|
||||
list.add(new ItemStack(item, 1, meta));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue