public void ReadFromStream(IPacketCodec content) { EntityId = content.ReadVarInt(); PlayerUuid = content.ReadUuid(); Position = content.ReadVector3d(); Rotation = content.ReadAngleRotation(); }
public void ReadFromStream(IPacketCodec content) { EntityId = content.ReadVarInt(); Position = content.ReadVector3d(); Rotation = content.ReadAngleRotation(); OnGround = content.ReadBoolean(); }
public void ReadFromStream(IPacketCodec content) { EntityId = content.ReadVarInt(); var delta = new Vector3d { X = content.ReadInt16(), Y = content.ReadInt16(), Z = content.ReadInt16() }; delta *= 0.000244140625 /* 1/4096 */; Delta = delta; Rotation = content.ReadAngleRotation(); OnGround = content.ReadBoolean(); }