Exemple #1
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;
 }
Exemple #2
0
 public void ReadPacket(MinecraftStream stream)
 {
     X = stream.ReadInt16();
     Y = stream.ReadInt16();
     Z = stream.ReadInt16();
     BlockType = stream.ReadUInt8();
 }
Exemple #3
0
 public void ReadPacket(MinecraftStream stream)
 {
     PlayerID = stream.ReadInt8();
     X = stream.ReadInt16();
     Y = stream.ReadInt16();
     Z = stream.ReadInt16();
     Yaw = stream.ReadUInt8();
     Pitch = stream.ReadUInt8();
 }
Exemple #4
0
 public void ReadPacket(MinecraftStream stream)
 {
     XSize = stream.ReadInt16();
     YSize = stream.ReadInt16();
     ZSize = stream.ReadInt16();
 }