-
Notifications
You must be signed in to change notification settings - Fork 0
Wrapper Classes (English)
GRAINALCOHOL edited this page Feb 26, 2026
·
3 revisions
Language: | > English < | 简体中文 |
Wrapper classes include the following enums:
-
EmotionLevel- Emotion level -
MentalHealthStatus- Mental health status -
MentalIllnessStatus- Mental illness status -
PTSDLevel- PTSD level -
Severity- Severity level
For the difference between MentalHealthStatus and MentalIllnessStatus, please refer to this page:
Wrapper classes are designed to simplify the usage of the Depression API, allowing users to avoid dealing with magic values.
For example, when you want to check if a player is in manic phase, using the vanilla API you would need to write:
MentalStatus mentalStatus = Registry.mentalStatus.get(player.getUuid());
if (mentalStatus.getMentalHealthId() == 4 && mentalStatus.isMania()) {
// Player is in manic phase
}Using wrapper classes, you only need:
if (MentalHealthStatus.from(player).isMania()) {
// Player is in manic phase
}