Skip to content

Wrapper Classes (English)

GRAINALCOHOL edited this page Feb 26, 2026 · 3 revisions

Language: | > English < | 简体中文 |

What are Wrapper Classes?

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:

Language: | English | 简体中文 |

Wrapper classes are designed to simplify the usage of the Depression API, allowing users to avoid dealing with magic values.

How to Use?

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
}

Wrapper Classes Categories:

Clone this wiki locally