@Override public void write(ByteArrayDataOutput out) { out.writeUTF(playerName); out.writeInt(x); out.writeInt(y); out.writeInt(z); out.writeInt(size); out.writeInt(types); out.writeBoolean(remove); out.writeChar(upgrade); out.writeChar(downgrade); }
@Override public void write(Object o, ByteArrayDataOutput dat) { dat.writeChar((Character) o); }