Jump to content

olari

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by olari

  1. Here's the final code: private Field overlayMessageField = null; // Called at initialization private void findOverlayTextField() { this.overlayMessageField = ReflectionHelper.findField(GuiIngame.class, "overlayMessage"); } public String getActionbar() { try { return (String)this.overlayMessageField.get(mc.ingameGUI); } catch (IllegalAccessException e) { e.printStackTrace(); } return null; }
  2. Got it working! String title = ReflectionHelper.getPrivateValue(GuiIngame.class, mc.ingameGUI, 8);
  3. Thank you very much for the hasty reply. I'll look into using reflection.
  4. I'm trying to get the text from the /title actionbar command to get some information that a server presents there. From the Minecraft decompilation I've gathered that the text itself is kept and used in net.minecraft.client.gui.GuiIngame, but I don't have access to it. public class GuiIngame { protected String overlayMessage; // text itself public void setOverlayMessage(...); // setter // no getter } The only way I can come up with to get this information is to catch the SPacketTitle itself when it arrives. This seems like a pretty daunting task so I thought I'd ask here first for alternatives. If networking is the only option, I would like some guidance on how to approach it.
×
×
  • Create New...

Important Information

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