Пример #1
0
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     xPosition = datainputstream.ReadDouble();
     yPosition = datainputstream.ReadDouble();
     stance    = datainputstream.ReadDouble();
     zPosition = datainputstream.ReadDouble();
     base.ReadPacketData(datainputstream);
 }
Пример #2
0
        /// <exception cref="System.IO.IOException"/>
        public override void ReadPacketData(java.io.DataInputStream datainputstream)
        {
            explosionX    = datainputstream.ReadDouble();
            explosionY    = datainputstream.ReadDouble();
            explosionZ    = datainputstream.ReadDouble();
            explosionSize = datainputstream.ReadFloat();
            int i = datainputstream.ReadInt();

            destroyedBlockPositions = new HashSet <ChunkPosition>();
            int j = (int)explosionX;
            int k = (int)explosionY;
            int l = (int)explosionZ;

            for (int i1 = 0; i1 < i; i1++)
            {
                int j1 = datainputstream.ReadByte() + j;
                int k1 = datainputstream.ReadByte() + k;
                int l1 = datainputstream.ReadByte() + l;
                destroyedBlockPositions.Add(new net.minecraft.src.ChunkPosition(j1, k1, l1));
            }
        }