Interface StyleModifier
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional contract for mutating rich text
Styles during dynamic enchantment tooltip rendering.
Registered in DynamicDescriptionFormatter and invoked
when parsing style tags of the form <modifier=arg:content> or <modifier:content>.
-
Method Summary
-
Method Details
-
apply
Applies a style transformation to the activeStyleon top of the formatting stack.- Parameters:
currentStyle- The current inheritedStylein the parsing hierarchy.arg- The optional string argument parsed after'='in the opening tag, ornullif omitted.- Returns:
- The new derived
Styleto push onto the style stack.
-