@Override
    void write(DataOutput dataoutput) {
        try {
            dataoutput.writeInt(this.data.length);
            for (int i = 0; i < this.data.length; ++i) {
                dataoutput.writeInt(this.data[i]);
            }
        } catch (IOException e) {
            throw new NBTWriteException(e);
        }
    }