Interface Trait

All Superinterfaces:
NamespaceIdentified, Optioned
All Known Implementing Classes:
CustomTrait, Traits

public interface Trait extends Optioned, NamespaceIdentified
  • 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

      String getDisplayName(Locale locale)
      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
    • name

      String name()
      Gets a fully uppercase String of the trait name without the namespace
      Returns:
      the trait name in all upper case