summaryrefslogtreecommitdiff
path: root/ihl/processing/chemistry/ApparatusProcessableInvSlot.java
diff options
context:
space:
mode:
authorFoghrye4 <foghrye4@gmail.com>2017-06-17 08:12:18 +0300
committerFoghrye4 <foghrye4@gmail.com>2017-06-17 08:12:18 +0300
commitdc3df3edd5843bde0c1335d6a8e460b2c832aa48 (patch)
treeaf13bfeee567f2351e35e1ef176d168fe37c8aac /ihl/processing/chemistry/ApparatusProcessableInvSlot.java
parent1da8dcd58647e34c9af94ceeecaeaf3b0d08c48c (diff)
full project files
Diffstat (limited to 'ihl/processing/chemistry/ApparatusProcessableInvSlot.java')
-rw-r--r--ihl/processing/chemistry/ApparatusProcessableInvSlot.java59
1 files changed, 0 insertions, 59 deletions
diff --git a/ihl/processing/chemistry/ApparatusProcessableInvSlot.java b/ihl/processing/chemistry/ApparatusProcessableInvSlot.java
deleted file mode 100644
index bfed5c9..0000000
--- a/ihl/processing/chemistry/ApparatusProcessableInvSlot.java
+++ /dev/null
@@ -1,59 +0,0 @@
-package ihl.processing.chemistry;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import ic2.api.recipe.IRecipeInput;
-import ic2.core.block.TileEntityInventory;
-import ic2.core.block.invslot.InvSlot;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-
-public class ApparatusProcessableInvSlot extends InvSlot {
-
- public ApparatusProcessableInvSlot(TileEntityInventory base1, String name1, int oldStartIndex1, Access access1,
- int count, int stackSizeLimit1) {
- super(base1, name1, oldStartIndex1, Access.I, count);
- this.setStackSizeLimit(stackSizeLimit1);
- }
-
- public List<ItemStack> getItemStackList() {
- List<ItemStack> list = new ArrayList<ItemStack>();
- for (int i = 0; i < this.size(); i++) {
- if (get(i) != null) {
- list.add(get(i));
- }
- }
- return list;
- }
-
- public ItemStack getItemStack(Item item) {
- for (int i = 0; i < this.size(); i++) {
- if (get(i) != null && get(i).getItem() == item) {
- return get(i);
- }
- }
- return null;
- }
-
- public void replaceItemStack(ItemStack stack1) {
- for (int i = 0; i < this.size(); i++) {
- if (this.get(i) != null && this.get(i).getItem() == stack1.getItem()) {
- this.put(i, stack1);
- }
- }
- }
-
- public void consume(IRecipeInput iRecipeInput) {
- for (int i = 0; i < this.size(); i++) {
- if (this.get(i) != null && iRecipeInput.matches(this.get(i))) {
- this.get(i).stackSize -= iRecipeInput.getAmount();
- if (this.get(i).stackSize <= 0) {
- this.put(i, null);
- return;
- }
- }
- }
- }
-
-}