Ejemplo n.º 1
0
 public void ReadPacket(MinecraftStream stream)
 {
     X         = stream.ReadInt16();
     Y         = stream.ReadInt16();
     Z         = stream.ReadInt16();
     BlockType = stream.ReadUInt8();
 }
Ejemplo 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();
 }
Ejemplo 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;
        }
Ejemplo n.º 4
0
 public override void FromStream(MinecraftStream stream)
 {
     Value = stream.ReadInt16();
 }
Ejemplo n.º 5
0
 public void ReadPacket(MinecraftStream stream)
 {
     XSize = stream.ReadInt16();
     YSize = stream.ReadInt16();
     ZSize = stream.ReadInt16();
 }
Ejemplo n.º 6
0
 public override void FromStream(MinecraftStream stream)
 {
     Value = stream.ReadInt16();
 }