Interface RichVariable
- All Superinterfaces:
CaptionVariable,ComponentLike
A
CaptionVariable implementation that uses Adventure components.-
Method Summary
Modifier and TypeMethodDescriptionReturns the variable value as a component.key()static @NonNull RichVariableCreates a new rich variable.value()
-
Method Details
-
of
Creates a new rich variable.- Parameters:
key- variable keycomponent- variable value- Returns:
- the variable
-
key
- Specified by:
keyin interfaceCaptionVariable
-
component
Returns the variable value as a component.- Returns:
- the component
-
asComponent
- Specified by:
asComponentin interfaceComponentLike
-
value
- Specified by:
valuein interfaceCaptionVariable
-