22232425262728
int y = buffer.readInt(); int z = buffer.readInt(); int rotation = buffer.readUnsignedByte(); int pitch = buffer.readUnsignedByte(); int item = buffer.readUnsignedShort(); return new SpawnPlayerMessage(id, name, x, y, z, rotation, pitch, item); }
164165166167168169170
int x = position.getPixelX(); int y = position.getPixelY(); int z = position.getPixelZ(); int yaw = rotation.getIntYaw(); int pitch = rotation.getIntPitch(); return new SpawnPlayerMessage(id, name, x, y, z, yaw, pitch, 0); }