public void ReadPacket(IMinecraftStream stream) { X = stream.ReadDouble(); Y = stream.ReadDouble(); Stance = stream.ReadDouble(); Z = stream.ReadDouble(); OnGround = stream.ReadBoolean(); }
public void ReadPacket(IMinecraftStream stream) { X = stream.ReadDouble(); Y = stream.ReadDouble(); Z = stream.ReadDouble(); Radius = stream.ReadSingle(); AffectedBlocks = new Tuple<sbyte, sbyte, sbyte>[stream.ReadInt32()]; for (int i = 0; i < AffectedBlocks.Length; i++) { AffectedBlocks[i] = new Tuple<sbyte, sbyte, sbyte>( stream.ReadInt8(), stream.ReadInt8(), stream.ReadInt8()); } }
public void ReadPacket(IMinecraftStream stream) { X = stream.ReadDouble(); Y = stream.ReadDouble(); Z = stream.ReadDouble(); Radius = stream.ReadSingle(); AffectedBlocks = new Tuple <sbyte, sbyte, sbyte> [stream.ReadInt32()]; for (int i = 0; i < AffectedBlocks.Length; i++) { AffectedBlocks[i] = new Tuple <sbyte, sbyte, sbyte>( stream.ReadInt8(), stream.ReadInt8(), stream.ReadInt8()); } }