PacketFactory sounds more appropriate
cast location.getX, getY, and getZ to float