Applied-Energistics-2-tiler.../parts/layers/InvSot.java

48 lines
967 B
Java
Raw Normal View History

package appeng.api.parts.layers;
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 );
}
}