It isn’t simple(in my eyes). There is a PR about this: Custom Data Generation by gabizou · Pull Request #1198 · SpongePowered/SpongeAPI · GitHub
Having to write 3 classes just to store a
String
onto anEntity
orItemStack
is a bit excessive.
This helped me a lot: DataManipulatorGenerator