Esempio n. 1
0
 public void ReadPacket(MinecraftStream stream)
 {
     X         = stream.ReadInt16();
     Y         = stream.ReadInt16();
     Z         = stream.ReadInt16();
     BlockType = stream.ReadUInt8();
 }
Esempio n. 2
0
 public void ReadPacket(MinecraftStream stream)
 {
     PlayerID = stream.ReadInt8();
     X        = stream.ReadInt16();
     Y        = stream.ReadInt16();
     Z        = stream.ReadInt16();
     Yaw      = stream.ReadUInt8();
     Pitch    = stream.ReadUInt8();
 }
Esempio n. 3
0
        public void ReadPacket(MinecraftStream stream)
        {
            var length = stream.ReadInt16();
            var data   = stream.ReadArray();

            Data = new byte[length];
            Array.Copy(data, Data, length);
            Complete = stream.ReadUInt8() / 100.0;
        }
Esempio n. 4
0
 public override void FromStream(MinecraftStream stream)
 {
     Value = stream.ReadInt16();
 }
Esempio n. 5
0
 public void ReadPacket(MinecraftStream stream)
 {
     XSize = stream.ReadInt16();
     YSize = stream.ReadInt16();
     ZSize = stream.ReadInt16();
 }
Esempio n. 6
0
 public override void FromStream(MinecraftStream stream)
 {
     Value = stream.ReadInt16();
 }