Hi,
I recently saw a custom Forge mod sending a plugin message(?) to a server which a Spigot plugin can receive. I forgot how this was done. Is there a method for this using Forge/Vanilla Minecraft in 1.15.2?
Thanks,
TypicalFin
@SideOnly(Side.CLIENT)
@SubscribeEvent(priority = EventPriority.NORMAL)
public void onRenderExperienceBar(RenderGameOverlayEvent e)
{
//Debug message to see if it fires
System.out.println("RenderGameOverlayEvent fired!");
Minecraft minecraft = Minecraft.getMinecraft();
minecraft.fontRenderer.drawString(arguments here bla bla bla);
}
Hey there,
I am trying to make a mod that draws text to the screen. (It does a lot more but it doesn't matter)
I am trying to use this code to draw a string:
Minecraft.getMinecraft().fontRenderer.drawString({arguments});
but, it just throws an error saying
java.lang.RuntimeException: No OpenGL context found in the current thread.
Is there any way to fix this or maybe set an OpenGL context to the fontRenderer?