src/base/gcewing/sg/BaseTileInventory.java
/**
     * Removes from an inventory slot (first arg) up to a specified number (second arg) of items and returns them in a
     * new stack.
     */
Removes from an inventory slot (first arg) up to a specified number (second arg) of items and returns them in a
new stack.
Removes from an inventory slot ( first arg ) up to a specified number ( second arg ) of items and returns them in a new stack .
public ItemStack decrStackSize(int slot, int amount) {
        IInventory inventory = getInventory();
        if (inventory != null) {
            ItemStack result = inventory.decrStackSize(slot, amount);
            onInventoryChanged(slot);
            return result;
        }
        else
            return null;
    }
public ItemStack decrStackSize ( int slot , int amount ) { IInventory inventory = getInventory ( ) ; if ( inventory != null ) { ItemStack result = inventory . decrStackSize ( slot , amount ) ; onInventoryChanged ( slot ) ; return result ; } else return null ; }
Removes from an inventory slot (first arg) up to a specified number (second arg) of items and returns them in a
 new stack.
Removes from an inventory slot ( first arg ) up to a specified number ( second arg ) of items and returns them in a new stack .