Не отображается иконка своего эффекта

Версия Minecraft
1.12.2
47
1
Всем привет! Вся проблема в заголовке.
Код:
public class PotionsAll extends Potion {   

    public PotionsAll(String name, boolean badEff, int color)
    {
        super(badEff, color);
        this.setPotionName(name);
    }

    
    private static ResourceLocation icon;
    
    public void setIcon(ResourceLocation icon)
    {
        this.icon = icon;
    }
    
    @Override
    @SideOnly(Side.CLIENT)
    public void renderHUDEffect(int x, int y, PotionEffect effect, Minecraft mc, float alpha)
    {
        super.renderHUDEffect(x, y, effect, mc, alpha);

        mc.renderEngine.bindTexture(icon);

        
        GlStateManager.enableBlend();
        Gui.drawModalRectWithCustomSizedTexture(x + 3, y + 3, 0, 0, 32, 32, 32, 32);
    }
    
    @Override
    @SideOnly(Side.CLIENT)
    public void renderInventoryEffect(int x, int y, PotionEffect effect, Minecraft mc)
    {
        super.renderInventoryEffect(x, y, effect, mc);

        mc.renderEngine.bindTexture(icon);

        GlStateManager.enableBlend();
        Gui.drawModalRectWithCustomSizedTexture(x + 6, y + 7, 0, 0, 32, 32, 32, 32);
    }
    

}

Код:
public class PotionHurt extends PotionsAll {

    public PotionHurt(String name, boolean badEff, int color) {
        super(name, badEff, color);
        this.setIcon(new ResourceLocation("expproject:textures/icons/icon.png"));
        MinecraftForge.EVENT_BUS.register(this);
    }

    //там дальше код эффекта зелья
}

текстурка 32 на 32 лежит тут textures/icons/icon.png
 
7,099
324
1,509
Сверху