@Override
    public void serialize(Buffer buf) {
        buf.writeShort(bonesId);
        buf.writeUShort(skins.length);
        for (short entry : skins) {
            buf.writeShort(entry);
        }
        buf.writeUShort(indexedColors.length);
        for (int entry : indexedColors) {
            buf.writeInt(entry);
        }
        buf.writeUShort(scales.length);
        for (short entry : scales) {
            buf.writeShort(entry);
        }
        buf.writeUShort(subentities.length);
        for (SubEntity entry : subentities) {
            entry.serialize(buf);
        }
    }