Okay, Parchment works, and blit also. But still, it is black on the screen:
private static final ResourceLocation SS_ICON = new ResourceLocation("sereneseasons", "sereneseasons/textures/item/ss_icon.png");
@SubscribeEvent
public void onRenderGameOverlayEventPost(RenderGameOverlayEvent.Post pEvent) {
if (pEvent.getType() == RenderGameOverlayEvent.ElementType.ALL) {
Minecraft.getInstance().getTextureManager().bind(SS_ICON);
AbstractGui.blit(pEvent.getMatrixStack(), 50, 50, 0f, 0f, 8, 8, 16, 16);
}
}
The icon is black in game (when I make it bigger, it is this black/magenta squared texture):
I also tried it with a different ResourceLocation which works fine: new ResourceLocation("textures/gui/book.png");
I am not sure why it is not able to locate the resource. I also tried to copy it in my src/resources/assets folder, but that does not seem to work either. Do I have to register the resources first?