示例#1
0
        public void ReadPacket(IMcStream stream)
        {
            ItemId   = stream.ReadInt16();
            Metadata = stream.ReadInt16();
            var length = stream.ReadUInt8();

            Data = stream.ReadUInt8Array(length);
        }
示例#2
0
        public void ReadPacket(IMcStream stream)
        {
            X      = stream.ReadInt32();
            Y      = stream.ReadInt16();
            Z      = stream.ReadInt32();
            Width  = (short)(stream.ReadInt8() + 1);
            Height = (short)(stream.ReadInt8() + 1);
            Depth  = (short)(stream.ReadInt8() + 1);
            var len = stream.ReadInt32();

            CompressedData = stream.ReadUInt8Array(len);
        }