Esempio n. 1
0
        public override void Read(NetworkStreamMC stream)
        {
            X = stream.Int32();
            Y = stream.Int16();
            Z = stream.Int32();

            SizeX = stream.Byte();
            SizeY = stream.Byte();
            SizeZ = stream.Byte();

            Data = stream.Bytes(stream.Int32());
        }
Esempio n. 2
0
        public override void Read(NetworkStreamMC stream)
        {
            X = stream.Int32();
            Y = stream.Byte();
            Z = stream.Int32();

            Direction = stream.Byte();

            ItemId = stream.Int16();

            if (ItemId == -1) return;
            ItemAmount = stream.Byte();
            ItemHealth = stream.Byte();
        }
Esempio n. 3
0
        public override void Read(NetworkStreamMC stream)
        {
            X = stream.Double();
            Y = stream.Double();
            Z = stream.Double();

            RadiusMaybe = stream.Single();

            Count = stream.Int32();

            Records = new byte[Count][];

            for (int i = 0; i < Count; ++i)
            {
                Records[i] = stream.Bytes(3);
            }
        }
Esempio n. 4
0
        public override void Read(NetworkStreamMC stream)
        {
            X = stream.Int32();
            Z = stream.Int32();

            Size = stream.Int16();

            Coordinates = new short[Size];

            for (short i = 0; i < Size; ++i)
            {
                Coordinates[i] = stream.Int16();
            }

            Types = stream.Bytes(Size);
            Metadata = stream.Bytes(Size);
        }