public int[] getItemLastModifier(int itemSlot, BagLocation bag) throws IOException {
        GWCAPacket receivedGwcaPacket = sendAndReceivePacket(GWCAOperation.GET_ITEM_LAST_MODIFIER, itemSlot, bag != null ? bag.getValue() : ZERO);
        return receivedGwcaPacket.getParamsAsIntArray();
    }