float x = dataToDeserialize.readFloat();
float y = dataToDeserialize.readFloat();
float z = dataToDeserialize.readFloat();
float a = dataToDeserialize.readFloat();
Vector4 vector = new Vector4(x, y, z, a);
try {
field.set(packet, vector);
} catch (IllegalArgumentException | IllegalAccessException e) {
// should never happen
LOGGER.error("Unexpected error: ", e);