Interface AttributeModifierDisplay
- All Known Subinterfaces:
AttributeModifierDisplay.Default
,AttributeModifierDisplay.Hidden
,AttributeModifierDisplay.OverrideText
The display behavior for a dedicated attribute entry.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Default display for the attribute modifier, showing the statistic of its effect.static interface
Hidden statistics display for the attribute modifier.static interface
Specifies an overridden text to show instead of the default behavior for the attribute modifier. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionhidden()
Hides the statistics displayed by the attribute modifier.override
(ComponentLike text) Override the statistics displayed by the attribute modifier to an arbitrary text.reset()
Reset any override of the text displayed by the attribute modifier to its default behavior displaying the statistics.
-
Method Details
-
reset
Reset any override of the text displayed by the attribute modifier to its default behavior displaying the statistics.- Returns:
- the new display behavior instance
-
override
@Contract(value="_ -> new", pure=true) static AttributeModifierDisplay.OverrideText override(ComponentLike text) Override the statistics displayed by the attribute modifier to an arbitrary text.- Parameters:
text
- the overridden text- Returns:
- the new display behavior instance
-