Open pie-flavor opened 6 years ago
This is registering them globaly at ConfigurationOptions.defaults() and you can retrive a ConfigurationOption that uses the default TypeSerializer.
Theres also a TypeSerializer for DataContainers, https://github.com/SpongePowered/SpongeCommon/blob/a4733e52b280a82dcb6921d9e729964e34141165/src/main/java/org/spongepowered/common/data/SpongeDataManager.java#L77-L83
@pie-flavor Can you elaborate? this issue is kinda stuck in limbo currently, with more information someone might be able to fix it, or show you a way forward.
I don't know what exactly needs clarification. Some stuff is in ConfigurationOptions.defaults()
but there is also the object mapper factory that gets set per plugin. So a way to just inject a ConfigurationOptions
object would be a great thing.
If you wanted to inject a ConfigurationOptions object for using in your own configs, you cannot. The only way to retrieve it is to inject the default config loader and take its options.