From dc3df3edd5843bde0c1335d6a8e460b2c832aa48 Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Sat, 17 Jun 2017 08:12:18 +0300 Subject: full project files --- ihl/recipes/RecipeOutputItemStack.java | 52 ---------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 ihl/recipes/RecipeOutputItemStack.java (limited to 'ihl/recipes/RecipeOutputItemStack.java') diff --git a/ihl/recipes/RecipeOutputItemStack.java b/ihl/recipes/RecipeOutputItemStack.java deleted file mode 100644 index 480d1f8..0000000 --- a/ihl/recipes/RecipeOutputItemStack.java +++ /dev/null @@ -1,52 +0,0 @@ -package ihl.recipes; - -import net.minecraft.item.ItemStack; -import net.minecraftforge.oredict.OreDictionary; - -public class RecipeOutputItemStack { - public final ItemStack itemStack; - public final float quantity; - - public RecipeOutputItemStack(ItemStack itemStack1, float quantity1) { - itemStack = itemStack1; - quantity = quantity1; - itemStack.stackSize = 1; - } - - public RecipeOutputItemStack(ItemStack itemStack1) { - this(itemStack1, itemStack1.stackSize); - } - - public boolean matches(RecipeOutputItemStack is1) { - if (is1 == null || (itemStack.getItem() != is1.itemStack.getItem())) { - return false; - } else if (is1.itemStack.getItemDamage() != OreDictionary.WILDCARD_VALUE - && itemStack.getItemDamage() != is1.itemStack.getItemDamage()) { - return false; - } - return true; - } - - public RecipeOutputItemStack copy(int mulipier) { - return new RecipeOutputItemStack(itemStack, quantity * mulipier); - } - - public RecipeOutputItemStack copy() { - return new RecipeOutputItemStack(itemStack, quantity); - } - - @Override - public String toString() { - return this.itemStack.getUnlocalizedName() + ":" + this.quantity; - } - - public boolean matches(ItemStack is1) { - if (is1 == null || (itemStack.getItem() != is1.getItem())) { - return false; - } else if (is1.getItemDamage() != OreDictionary.WILDCARD_VALUE - && itemStack.getItemDamage() != is1.getItemDamage()) { - return false; - } - return true; - } -} -- cgit v1.2.3