APISonar


io.anuke.mindustry.net.TraceInfo.android

> io > anuke > mindustry > net > TraceInfo > android
io APIs anuke APIs mindustry APIs net APIs TraceInfo APIs android APIs

Example 1
public static void writeTrace(ByteBuffer buffer, TraceInfo info){
        buffer.putInt(info.playerid);
        buffer.putShort((short) info.ip.getBytes().length);
        buffer.put(info.ip.getBytes());
        buffer.put(info.modclient ? (byte) 1 : 0);
        buffer.put(info.android ? (byte) 1 : 0);

        buffer.putInt(info.totalBlocksBroken);
        buffer.putInt(info.structureBlocksBroken);
        buffer.putInt(info.lastBlockBroken.id);

        buffer.putInt(info.totalBlocksPlaced);
        buffer.putInt(info.lastBlockPlaced.id);
        buffer.put(Base64Coder.decode(info.uuid));
    }