Jump to content

[Solved][1.7.2]Arranging items in creative gui?


Naiten

Recommended Posts

Since we don't have item's ids one can't easily arrange items in the crative gui. Moving setCreativeTab() or registerItem() methods give no result.

Any ideas on this?

If i helped you, don't forget pressing "Thank You" button. Thanks for your time.

Link to comment
Share on other sites

It's in the order you add them. But if you rearrange them you will have to create a new world to make them pop up in the right order i believe.

Link to comment
Share on other sites

You can override

displayAllReleventItems

in your CreativeTab class, first call the super method to let it fill the list, then sort it with a Comparator.

Wow, that actually worked.

If i helped you, don't forget pressing "Thank You" button. Thanks for your time.

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.