Java 类net.minecraft.network.rcon.RConThreadQuery 实例源码

项目:RuneCraftery    文件:RConThreadQueryAuth.java   
public RConThreadQueryAuth(RConThreadQuery p_i1535_1_, DatagramPacket p_i1535_2_) {
   this.field_72600_a = p_i1535_1_;
   this.field_72598_b = (new Date()).getTime();
   byte[] var3 = p_i1535_2_.getData();
   this.field_72596_d = new byte[4];
   this.field_72596_d[0] = var3[3];
   this.field_72596_d[1] = var3[4];
   this.field_72596_d[2] = var3[5];
   this.field_72596_d[3] = var3[6];
   this.field_72595_f = new String(this.field_72596_d);
   this.field_72599_c = (new Random()).nextInt(16777216);
   this.field_72597_e = String.format("\t%s%d\u0000", new Object[]{this.field_72595_f, Integer.valueOf(this.field_72599_c)}).getBytes();
}