Jump to content

Recommended Posts

Posted

My mod requires changing how the slots render on my gui's, and it looks most of theses methods are locked out "private" so I can't simply over-ride them to use my code instead,

 

Here is the situation,

 

I need to change the numbers are rendered in my slots, to allow larger numbers, and alternate text.

 

My options I've seen so far

 

GuiContainter:

protected static RenderItem itemRenderer = new RenderItem();

 

For instance this can be changed, but then I'd replace MC's Default render, and the one used by other mods, not a good plan.

 

if I could override

protected void drawSlotInventory(...)

 

and I wouldn't have any issues, but this is a private method so this is a no go, so presently i'm just using a clone of the GuiContainer Class so I can set that static variable without affecting any other mods / mc.

 

I could re-code an entire new GuiContainer... but that would just be ridiculous...

 

I'm not very fond of this solution, but it does work...

 

Does anyone have any advise for a better solution on this?

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.