private ItemStack handleDropSlot ( MalisisSlot hoveredSlot , boolean fullStack ) { ItemStack itemStack = hoveredSlot . getItemStack ( ) ; if ( itemStack . isEmpty ( ) || ! hoveredSlot . isState ( PLAYER_EXTRACT ) ) return itemStack ; ItemUtils . ItemStackSplitter iss = new ItemUtils . ItemStackSplitter ( hoveredSlot . getItemStack ( ) ) ; iss . split ( fullStack ? ItemUtils . FULL_STACK : 1 ) ; hoveredSlot . setItemStack ( iss . source ) ; //if (slot.hasChanged()) hoveredSlot . onSlotChanged ( ) ; owner . dropItem ( iss . split , true ) ; if ( iss . amount != 0 ) hoveredSlot . onPickupFromSlot ( owner , iss . split ) ; return iss . split ; }
Drops itemStack from hovering slot .