Package net.kyori.adventure.text
Interface VirtualComponentRenderer<C>
- Type Parameters:
C
- the context type
public interface VirtualComponentRenderer<C>
A holder for a value.
- Since:
- 4.18.0
-
Method Summary
Modifier and TypeMethodDescription@UnknownNullability ComponentLike
Gets the value by rendering usingcontext
.default @NotNull String
Get a fallback value for when this component has been serialized without being rendered.
-
Method Details
-
apply
Gets the value by rendering usingcontext
.- Parameters:
context
- the context- Returns:
- the rendered value
- Since:
- 4.18.0
-
fallbackString
Get a fallback value for when this component has been serialized without being rendered.By default, this will be an empty string.
- Returns:
- the fallback string
- Since:
- 4.18.0
-