Jump to content

TypicalF1n

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by TypicalF1n

  1. 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
  2. @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); }
  3. 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?
  4. Hey there, is there any way to get an instance of EntityPlayer from PlayerControllerMP or EntityPlayerSP? Many thanks, TypicalFin
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.