From 0427ab89f1753a44b30cbc35ce021cbbdc845109 Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Thu, 10 Aug 2017 18:52:45 +0300 Subject: fix missing source folder --- main/java/ihl/recipes/RecipeInputWire.java | 72 ------------------------------ 1 file changed, 72 deletions(-) delete mode 100644 main/java/ihl/recipes/RecipeInputWire.java (limited to 'main/java/ihl/recipes/RecipeInputWire.java') diff --git a/main/java/ihl/recipes/RecipeInputWire.java b/main/java/ihl/recipes/RecipeInputWire.java deleted file mode 100644 index a7d5310..0000000 --- a/main/java/ihl/recipes/RecipeInputWire.java +++ /dev/null @@ -1,72 +0,0 @@ -package ihl.recipes; - -import java.util.Arrays; -import java.util.List; - -import ic2.api.recipe.IRecipeInput; -import ihl.interfaces.IWire; -import ihl.items_blocks.FlexibleCableItem; -import ihl.utils.IHLUtils; -import net.minecraft.item.ItemStack; - -public class RecipeInputWire implements IRecipeInput { - public final ItemStack input; - public final int amount; - - public RecipeInputWire(final ItemStack aInput) { - this(aInput, IHLUtils.getWireLength(aInput)); - } - - public RecipeInputWire(final ItemStack aInput, int aAmount) { - if (aInput.getItem() == null || !(aInput.getItem() instanceof IWire)) { - throw new IllegalArgumentException("Invalid item stack specfied"); - } else { - this.input = aInput; - this.amount = aAmount; - } - } - - public RecipeInputWire(String string, int i) { - this(IHLUtils.getThisModWireItemStackWithLength(string, i), i); - } - - public RecipeInputWire(String material, int length, int transverseSection) { - this(IHLUtils.getUninsulatedWire(material, length, transverseSection), length); - } - - public RecipeInputWire(String material, int length, int transverseSection, String insulationMaterial, - int insulationThickness, int insulationBreakdownVoltage) { - this(IHLUtils.getInsulatedWire(material, length, transverseSection, insulationMaterial, insulationThickness), - length); - } - - @Override - public boolean matches(ItemStack subject) { - if (subject.getItem() == this.input.getItem() - && (subject.getItemDamage() == this.input.getItemDamage() || this.input.getItemDamage() == 32767)) { - if (subject.getItem() instanceof FlexibleCableItem) { - FlexibleCableItem item = (FlexibleCableItem) subject.getItem(); - return item.isSameWire(this.input, subject); - } else { - return true; - } - } - return false; - } - - @Override - public int getAmount() { - return this.amount; - } - - @Override - public List getInputs() { - return Arrays.asList(new ItemStack[] { this.input }); - } - - @Override - public String toString() { - ItemStack stack = this.input.copy(); - return "RInputWireItemStack<" + stack + ">"; - } -} -- cgit v1.2.3