Interface TraitHandler

All Known Subinterfaces:
BukkitTraitHandler

public interface TraitHandler
  • Method Details

    • getTraits

      Trait[] getTraits()
    • getMenuDisplay

      default String getMenuDisplay(double value, Trait trait, Locale locale)
    • displayMatchesValue

      default boolean displayMatchesValue()
      Whether the value of getMenuDisplay(double, Trait, Locale) has the same numerical value as the actual trait level (ignoring any extra formatting like percent signs).
      Returns:
      whether the display value matches the trait value