Interface TraitHandler
- All Known Subinterfaces:
BukkitTraitHandler
public interface TraitHandler
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Whether the value ofgetMenuDisplay(double, Trait, Locale)
has the same numerical value as the actual trait level (ignoring any extra formatting like percent signs).default String
getMenuDisplay
(double value, Trait trait, Locale locale) Trait[]
-
Method Details
-
getTraits
Trait[] getTraits() -
getMenuDisplay
-
displayMatchesValue
default boolean displayMatchesValue()Whether the value ofgetMenuDisplay(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
-