-
Method Summary
Gets the trait display name as defined in the locale's messages file.
Gets the trait display name as defined in the locale's messages file.
Formats the given value of this trait to the format shown in the stats menu.
boolean
Gets whether the trait is enabled.
Gets a fully uppercase String of the trait name without the namespace
-
Method Details
-
isEnabled
boolean isEnabled()
Gets whether the trait is enabled. Disabled traits will have no effect
and will be hidden from menus.
- Returns:
- whether the trait is enabled
-
getDisplayName
Gets the trait display name as defined in the locale's messages file.
- Parameters:
locale
- the locale to get the display name
- Returns:
- the display name in the specified locale or a fallback language
-
getDisplayName
Gets the trait display name as defined in the locale's messages file.
- Parameters:
locale
- the locale to get the display name
formatted
- whether to apply formatting to the display name
- Returns:
- the display name in the specified locale or a fallback language
-
-
name
Gets a fully uppercase String of the trait name without the namespace
- Specified by:
name
in interface ReloadableIdentifier
- Returns:
- the trait name in all upper case