示例#1
0
 public void ReadFromStream(IPacketCodec content)
 {
     EntityId = content.ReadVarInt();
     Position = content.ReadVector3d();
     Rotation = content.ReadAngleRotation();
     OnGround = content.ReadBoolean();
 }
示例#2
0
 public void ReadFromStream(IPacketCodec content)
 {
     EntityId   = content.ReadVarInt();
     PlayerUuid = content.ReadUuid();
     Position   = content.ReadVector3d();
     Rotation   = content.ReadAngleRotation();
 }
        public void ReadFromStream(IPacketCodec content)
        {
            Position = content.ReadVector3d();
            Rotation = content.ReadRotation();
            var flags = content.ReadSByte();

            XKind           = (CoordKind)(flags & 0x01);
            YKind           = (CoordKind)(flags >> 1 & 0x01);
            ZKind           = (CoordKind)(flags >> 2 & 0x01);
            YRotKind        = (CoordKind)(flags >> 3 & 0x01);
            XRotKind        = (CoordKind)(flags >> 4 & 0x01);
            TeleportId      = content.ReadVarInt();
            DismountVehicle = content.ReadBoolean();
        }
示例#4
0
 public void ReadFromStream(IPacketCodec content)
 {
     Position = content.ReadVector3d();
     OnGround = content.ReadBoolean();
 }
示例#5
0
 public void ReadFromStream(IPacketCodec content)
 {
     Position = content.ReadVector3d();
     Rotation = content.ReadRotation();
 }