Sorry for the generic title, but I have many questions to throw out as this is the first time I'll be working with forge and the API.
The mod I'd like to design will have arbitrary roles assigned to players that persist, with events that should occur based on those roles. So far from what I have seen I'll need to implement a storage handler, capability, and event handlers.
When is the appropriate time to read, mark dirty, and write data?
While I can attach the capability to a player for custom classes to save that data, I am not sure where to find appropriate documentation for the player entity or other classes. Where can I find this?
If I have an event that fires, how can I determine if that data needs to be sent to or from the client and server?
E: v1.14.4