Skip to content

Instantly share code, notes, and snippets.

View covers1624's full-sized avatar

covers1624 covers1624

  • Australia , SA
View GitHub Profile
public AlloyFurnaceRecipe(Object result, Object... inputs) {
if (result instanceof String) {
ItemStack ore = OreDict.getOre((String) result);
if (ore != null) {
this.result = ore;
} else {
LogHelper.fatal("Unable to create AlloyFurnaceRecipe, was fed a OreDictionary entry that doesn't exist. " + result);
throw new IllegalArgumentException((String) result);
}
} else if (result instanceof OreStack) {