Jump to content

Recommended Posts

Posted

Hey guys,

I created my own screen and container. But the heading of the inventory screen is annoying (see here).

Is there an easy way to remove it, like an override? I haven't found anything useful yet.

Thanks for your help!

Posted

you can move the label out of the visible area via setting the AbstractContainerScreen#inventoryLabelX and AbstractContainerScreen#inventoryLabelY to an extremely large value
the other option would be to super a empty TextComponent in the constructor of your Screen (but im not 100% sure if this would work)

Posted
Quote

you can move the label out of the visible area via setting the AbstractContainerScreen#inventoryLabelX and AbstractContainerScreen#inventoryLabelY to an extremely large value

This one works like a charme. Thank you!

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.