Exemplo n.º 1
0
 /// <exception cref="System.IO.IOException"/>
 public override void WritePacketData(java.io.DataOutputStream dataoutputstream)
 {
     dataoutputstream.WriteDouble(xPosition);
     dataoutputstream.WriteDouble(yPosition);
     dataoutputstream.WriteDouble(stance);
     dataoutputstream.WriteDouble(zPosition);
     base.WritePacketData(dataoutputstream);
 }
Exemplo n.º 2
0
        /// <exception cref="System.IO.IOException"/>
        public override void WritePacketData(java.io.DataOutputStream dataoutputstream)
        {
            dataoutputstream.WriteDouble(explosionX);
            dataoutputstream.WriteDouble(explosionY);
            dataoutputstream.WriteDouble(explosionZ);
            dataoutputstream.WriteFloat(explosionSize);
            dataoutputstream.WriteInt(destroyedBlockPositions.Count);
            int i = (int)explosionX;
            int j = (int)explosionY;
            int k = (int)explosionZ;
            int j1;

            for (System.Collections.IEnumerator iterator = destroyedBlockPositions.GetEnumerator
                                                               (); iterator.MoveNext(); dataoutputstream.WriteByte(j1))
            {
                net.minecraft.src.ChunkPosition chunkposition = (net.minecraft.src.ChunkPosition)
                                                                iterator.Current;
                int l  = chunkposition.x - i;
                int i1 = chunkposition.y - j;
                j1 = chunkposition.z - k;
                dataoutputstream.WriteByte(l);
                dataoutputstream.WriteByte(i1);
            }
        }