Understand Entity Mixins in JDA
masterEntity Mixins are a design pattern used within JDA to provide core functionalities through composition rather than pure inheritance. This system allows the library to:
- Reuse code across different entity types.
- Expose internal state setters and getters to the library's internal implementation without exposing them to the end-user API.
Mixins typically consist of a public interface, an internal mixin interface that extends the public one, and a concrete implementation class.