You need (and should) use an access transformer for accessing private fields. If you can join #spongedev
on our IRC for a moment I can help you to set them up.
Shortly said:
-
You need to create a AT config similar to https://github.com/SpongePowered/SpongeCommon/blob/master/src/main/resources/META-INF/common_at.cfg in the
META-INF
directory in your resource, add the fields there aspublic
. -
Configure ForgeGradle to apply them (e.g. add
atSource sourceSets.main
in the minecraft block of yourbuild.gradle
), runsetupDecompWorkspace
again. -
Add a
FMLAT
manifest entry with the file name of your access transformer.