Removed old, commented out code.

This commit is contained in:
SirSengir 2013-05-19 23:33:54 +02:00
parent a5bb01d2cb
commit 46c0d7deaa
2 changed files with 0 additions and 101 deletions

View file

@ -132,33 +132,6 @@ public class PipeItemsEmerald extends PipeItemsWood implements ISpecialInventory
return null;
/*
if (inventory instanceof ISidedInventory) {
ISidedInventory sidedInv = (ISidedInventory) inventory;
int first = sidedInv.getStartInventorySide(from);
int last = first + sidedInv.getSizeInventorySide(from) - 1;
IInventory inv = Utils.getInventory(inventory);
ItemStack result = checkExtractGeneric(inv, doRemove, from, first, last);
if (result != null) {
return new ItemStack[]{result};
}
} else {
// This is a generic inventory
IInventory inv = Utils.getInventory(inventory);
ItemStack result = checkExtractGeneric(inv, doRemove, from, 0, inv.getSizeInventory() - 1);
if (result != null) {
return new ItemStack[]{result};
}
}
return null; */
}
private void incrementFilter() {

View file

@ -157,80 +157,6 @@ public class PipeItemsWood extends Pipe implements IPowerReceptor {
return null;
/*
if (inventory instanceof ISidedInventory) {
net.minecraft.inventory.ISidedInventory sidedInv = (ISidedInventory) inventory;
int[] slots = sidedInv.getAccessibleSlotsFromSide(from.ordinal());
ItemStack result = checkExtractGeneric(sidedInv, doRemove, from, slots);
if (result != null)
return new ItemStack[] { result };
} else if (inventory instanceof net.minecraftforge.common.ISidedInventory) {
net.minecraftforge.common.ISidedInventory sidedInv = (net.minecraftforge.common.ISidedInventory) inventory;
int first = sidedInv.getStartInventorySide(from);
int last = first + sidedInv.getSizeInventorySide(from) - 1;
IInventory inv = Utils.getInventory(inventory);
ItemStack result = checkExtractGeneric(sidedInv, doRemove, from, first, last);
if (result != null)
return new ItemStack[] { result };
} else if (inventory.getSizeInventory() == 2) {
// This is an input-output inventory
int slotIndex = 0;
if (from == ForgeDirection.DOWN || from == ForgeDirection.UP) {
slotIndex = 0;
} else {
slotIndex = 1;
}
ItemStack slot = inventory.getStackInSlot(slotIndex);
if (slot != null && slot.stackSize > 0) {
if (doRemove)
return new ItemStack[] { inventory.decrStackSize(slotIndex, (int) powerProvider.useEnergy(1, slot.stackSize, true)) };
else
return new ItemStack[] { slot };
}
} else if (inventory.getSizeInventory() == 3) {
// This is a furnace-like inventory
int slotIndex = 0;
if (from == ForgeDirection.UP) {
slotIndex = 0;
} else if (from == ForgeDirection.DOWN) {
slotIndex = 1;
} else {
slotIndex = 2;
}
ItemStack slot = inventory.getStackInSlot(slotIndex);
if (slot != null && slot.stackSize > 0) {
if (doRemove)
return new ItemStack[] { inventory.decrStackSize(slotIndex, (int) powerProvider.useEnergy(1, slot.stackSize, true)) };
else
return new ItemStack[] { slot };
}
} else {
// This is a generic inventory
IInventory inv = Utils.getInventory(inventory);
ItemStack result = checkExtractGeneric(inv, doRemove, from, 0, inv.getSizeInventory() - 1);
if (result != null)
return new ItemStack[] { result };
}
*/
}
public ItemStack checkExtractGeneric(IInventory inventory, boolean doRemove, ForgeDirection from) {