2014-05-27 19:15:49 +02:00
|
|
|
package appeng.parts.layers;
|
2014-05-27 19:06:55 +02:00
|
|
|
|
|
|
|
import net.minecraft.inventory.ISidedInventory;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
|
|
|
public class InvSot
|
|
|
|
{
|
|
|
|
|
|
|
|
final public ISidedInventory partInv;
|
|
|
|
final public int index;
|
|
|
|
|
|
|
|
public InvSot(ISidedInventory part, int slot) {
|
|
|
|
partInv = part;
|
|
|
|
index = slot;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ItemStack decrStackSize(int j)
|
|
|
|
{
|
|
|
|
return partInv.decrStackSize( index, j );
|
|
|
|
}
|
|
|
|
|
|
|
|
public ItemStack getStackInSlot()
|
|
|
|
{
|
|
|
|
return partInv.getStackInSlot( index );
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean isItemValidForSlot(ItemStack itemstack)
|
|
|
|
{
|
|
|
|
return partInv.isItemValidForSlot( index, itemstack );
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setInventorySlotContents(ItemStack itemstack)
|
|
|
|
{
|
|
|
|
partInv.setInventorySlotContents( index, itemstack );
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean canExtractItem(ItemStack itemstack, int side)
|
|
|
|
{
|
|
|
|
return partInv.canExtractItem( index, itemstack, side );
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean canInsertItem(ItemStack itemstack, int side)
|
|
|
|
{
|
|
|
|
return partInv.canInsertItem( index, itemstack, side );
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|