Compatibility of "GTOres" and "Astrominer" from "Galacticraft 3". Need help with NBT

I refactored the code a little and thought to make a drop drop similar to yours, but I got confused.
I can’t figure out how to correctly set the drop of GT6 materials from the corresponding ore block to one “getDrops” function.
Unfortunately, I only partially understand the dependencies in GT6 and Minecraft code.

I’ve made a small sketch so far:

Summary
package by.lucelarius.gcaoe.common.util;

import gregapi.data.MT;
import gregapi.data.OP;
import gregapi.oredict.OreDictMaterial;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;

import java.util.ArrayList;

public class EOreSmall_Drops {

    private final OreDictMaterial rockDrop;

    public EOreSmall_Drops() {
        this.rockDrop = MT.STONES.SpaceRock;
    }

    public ArrayList<ItemStack> getDrops(World world, int x, int y, int z, int metadata, int fortune)
    {
        ArrayList<ItemStack> ret = new ArrayList<ItemStack>();
        ret.add(new ItemStack(OP.dust.mat(this.rockDrop, 1).getItem()));
        ret.add(new ItemStack(Items.diamond, 2));

        return ret;
    }
}

All code on GitHub

2 Likes