Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

I have been working on implementing config into my mod, and I can't seem to find a way to organize it. It seems to not follow any logic.

It doesn't seem to populate alphabetically (As I am trying to get i), or by order in the code. I have tried using .push() to setup subsections, but those seem to have the same issue.

 

Any insight into this would be very much appreciated.

Thank you,

MurkyConspiracy 

Edited by MurkyConspiracy
Issue Solved

C#, Java, and Lua are my forte's.

Currently Working On: Minecraft Manipulation

Let's play test!

It's threaded, so it populates in the order it loads

 

There's a method called preserveInsertionOrder() in the builder that let's you reorder the list as you have it in code.

I'm not aware of anything that let's you order it alphabetically, though.

Edited by AfterRebelion

  • Author
31 minutes ago, AfterRebelion said:

It's threaded, so it populates in the order it loads

 

There's a method called preserveInsertionOrder() in the builder that let's you reorder the list as you have it in code.

I'm not aware of anything that let's you order it alphabetically, though.

That worked great, thank you! I had tried looking for an ordering method in the ForgeConfigSpec Builder, and that doesn't have any functions, however its the CommentedFileConfig builder that has sorting methods. I wish I would have thought of that!

 

Thank you again,

MurkyConspiracy

C#, Java, and Lua are my forte's.

Currently Working On: Minecraft Manipulation

Let's play test!

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.