Why my imports in minecraft code for mod on Forge don't work?

23 views Asked by At

I did Minecraft mod what should add new magnet pickaxe, but for some reason i can't do that because of imports. It just red in Intelij IDEA

there code:

package _1;

import net.minecraft.item.PickaxeItem;
import net.minecraft.item.ToolMaterial;

public class MagnetPickaxeItem extends PickaxeItem {

    public <ToolMaterial> MagnetPickaxeItem(ToolMaterial material, Settings settings) {
        super(material, 4, 1.2f, settings);
    }

    @Override
    public boolean isEffectiveOn(net.minecraft.block.BlockState state)
     // add check for netherite blocks
        return state.getBlock() != Blocks.NETHERITE_BLOCK && super.isEffectiveOn(state);
    }
}

`

I tried reinstalling the forge and tried libraries for Intelij IDEA, but it doesn't work

0

There are 0 answers