InvSwapPacket's ID should be 55 and InvResultPacket's ID should be 95.
The data being read also seems incorrect.
In order, the data for InvSwapPacket is time, player position, slotFrom, slotTo
and for InvResultPacket it is unknown byte, unknown byte, slotFrom, slotTo, unknown int, unknown int
InvResultPacket is a response packet to InvSwapPacket I'm pretty sure
InvSwapPacket's ID should be 55 and InvResultPacket's ID should be 95.
The data being read also seems incorrect. In order, the data for InvSwapPacket is time, player position, slotFrom, slotTo and for InvResultPacket it is unknown byte, unknown byte, slotFrom, slotTo, unknown int, unknown int
InvResultPacket is a response packet to InvSwapPacket I'm pretty sure