private ItemStack handlePickBlock ( MalisisSlot slot ) { if ( slot . getItemStack ( ) . isEmpty ( ) || ! pickedItemStack . isEmpty ( ) ) return ItemStack . EMPTY ; ItemStack itemStack = ItemUtils . copy ( slot . getItemStack ( ) ) ; itemStack . setCount ( itemStack . getMaxStackSize ( ) ) ; setPickedItemStack ( itemStack ) ; return itemStack ; }
Picks up the itemStack in the slot .