Jump to content

[1.13.2] How can I replace vanilla method?


First_jenkins

Recommended Posts

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).

 

Edited by diesieben07
[removed copyrighted code
Link to comment
Share on other sites

12 minutes ago, diesieben07 said:

Why are you posting copyrighted code here that we can all see ourselves? There is no point in doing so.

 

What are you trying to achieve (not how do you want to achieve it, which is what you posted above)?

 

I'm trying to develop foreign language typing system. 

So, I want to intercept typewriting event to insert this additional typing function.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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