Interface Status
public interface Status
A status to be narrated in the player status readout or to trigger warnings.
- Since:
- 1.12.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumWeather this status should appear in the player status readout or the conditional status readout.static enumRepresents a warning level fromwarning(). -
Method Summary
Modifier and TypeMethodDescriptionmessage()The message to be narrated to the player.default @NotNull Status.VisibilityWeather this status should appear in the player status readout or the conditional status readout.default @NotNull Status.WarningLevelwarning()Returns the current warning severity for this status.
-
Method Details
-
message
-
visibility
Weather this status should appear in the player status readout or the conditional status readout.- Returns:
- See
Status.Visibility. - Since:
- 1.12.0
- See Also:
- Implementation Requirements:
- Returns
Status.Visibility.NORMALby default.
-
warning
Returns the current warning severity for this status.A warning is triggered whenever the returned
Status.WarningLevelincreases from the previous tick. When a warning is triggered, a sound is played depending on theStatus.WarningLeveland themessage()is narrated.- Returns:
- The current warning severity.
- Since:
- 1.12.0
- See Also:
- Implementation Requirements:
- The default implementation always returns
Status.WarningLevel.NONE, effectively disabling warnings for this status.
-