public static boolean isPlaceAction(InventoryAction action){
switch (action) {
case SWAP_WITH_CURSOR:
case PLACE_ONE:
case PLACE_ALL:
case PLACE_SOME:
    return true;
}
return false;
}

public static boolean isPlaceAction ( InventoryAction action ) { switch ( action ) { case SWAP_WITH_CURSOR : case PLACE_ONE : case PLACE_ALL : case PLACE_SOME : return true ; } return false ; }
check if a given inventoryaction involves placing items into the slot .
