Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

List of useable types for ForgeConfigSpec.Builder


ImNotJahan
 Share

Recommended Posts

A lot of the different types I try and use for config files throw up a 

com.electronwill.nightconfig.core.io.WritingException: Unsupported value type

which I'm guessing just means that type isn't supported, so I was just wondering if there's a list of which are, as I couldn't find one anywhere.

Link to comment
Share on other sites

only primitive values are supported (int, double, float, enum, ...) this also include Strings, if you want to use other values you need to store them in a String or a enum, e.g. minecraft:stone is the RegistryName of the Stone block you can store the name (as String) in the config then you can create a ResourceLocation from a String a then you can get the Block 

Edited by Luis_ST
  • Thanks 1
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
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.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.