This allows static or transient fields to not be final, and also allows configured fields to be private - which might be useful if the config class has some other way to expose the config value to the rest of the mod.
I'm not sure if the "is public" check is necessary, since we probably don't care if we leave Field.isAccessible() on true unnecessarily.
This allows static or transient fields to not be final, and also allows configured fields to be private - which might be useful if the config class has some other way to expose the config value to the rest of the mod.
I'm not sure if the "is public" check is necessary, since we probably don't care if we leave
Field.isAccessible()
on true unnecessarily.