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

Hey,

I have created a Forge Mod, that uses a config file and the Configuration method from minecraftforge. The mod is client-side only, it has some visual features. The .cfg file exists and has every variable in it, almost correct.

Now to the problem: Some of the variables are Lists of Integers and Booleans. But I can't save the variables in the file a proper way. A normal method call would be:

    this.config.get("category", "key", new Boolean[7]).set(this.key);

The output in the config file would be something like:

    category {

        B:key<

            True

            True

            False

         >

    }

 


The syntax of the IDE (IntelliJ) seams to be correct, it suggests to use (String, String, boolean[], optional others) but it only let me do:

    this.config.get("category", "key", new String[7]).set(this.key);

A list of Strings works without a problem and but thats not what I want. I can only use Integers, Doubles and Booleans if they are not lists.

 

Does someone has a solution or a guess? And before you say that I should use a toml, json, yaml... file: I've already integrated everything and it would be a lot of work. Besides that its the way you should do it according to Forge:

Thanks, Matrix

Guest
This topic is now closed to further replies.

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.