readDouble() public method

public readDouble ( ) : double
return double
Example #1
0
 public override void readPacketData(DataInputStream datainputstream)
 {
     xPosition = datainputstream.readDouble();
     yPosition = datainputstream.readDouble();
     stance = datainputstream.readDouble();
     zPosition = datainputstream.readDouble();
     base.readPacketData(datainputstream);
 }
Example #2
0
 public override void readPacketData(DataInputStream datainputstream)
 {
     explosionX = datainputstream.readDouble();
     explosionY = datainputstream.readDouble();
     explosionZ = datainputstream.readDouble();
     explosionSize = datainputstream.readFloat();
     int i = datainputstream.readInt();
     destroyedBlockPositions = new HashSet();
     var j = (int) explosionX;
     var k = (int) explosionY;
     var 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 ChunkPosition(j1, k1, l1));
     }
 }