Jump to content

First_jenkins

Members
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

First_jenkins's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Guys, when I call some method (GuiNewChat) to call previous chat history in custom chat method. Here's the result .. public void onRenderGui(RenderGameOverlayEvent.Post event) {if (Minecraft.getInstance().currentScreen instanceof NewChat) { Minecraft.getInstance().ingameGUI.getChatGUI().drawChat(1); } } How can I fix its location? I tried to add some glstatemanager class from referring some previous classes like forgeingamegui.class in that class... there the codes look like.. protected void renderChat(int width, int height) { mc.profiler.startSection("chat"); RenderGameOverlayEvent.Chat event = new RenderGameOverlayEvent.Chat(eventParent, 0, height - 48); if (MinecraftForge.EVENT_BUS.post(event)) return; GlStateManager.pushMatrix(); GlStateManager.translatef((float) event.getPosX(), (float) event.getPosY(), 0.0F); persistantChatGUI.drawChat(ticks); GlStateManager.popMatrix(); post(CHAT); mc.profiler.endSection(); }
  2. I'm trying to develop foreign language typing system. So, I want to intercept typewriting event to insert this additional typing function.
  3. Hello. I want to replace vanilla method. Also, I found Access Transformers ,but don't know how to do. I'm a noob. Here's what I want to do. Proposal: Replace charTyped method in GuiTextField.class (located in net.minecraft.client.gui) into another custom charTyped method that I created. [removed copyrighted code] This is the full code of GuiTextField.class And that method is [removed copyrighted code] What I tried is just replace whole class (Block displayguiscreen event and poped custom one) Anyone..know how to replace or overwrite it? I have custom chartyped method(not above).
×
×
  • Create New...

Important Information

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