Interface SerializableResolver.Single
- All Superinterfaces:
SerializableResolver
- Enclosing interface:
SerializableResolver
A subinterface for resolvers that only handle one single tag.
- Since:
- 4.10.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.kyori.adventure.text.minimessage.internal.serializer.SerializableResolver
SerializableResolver.Single -
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable EmitableclaimComponent(Component component) Claim a full component for tag emission.default @Nullable StyleClaim<?> Claim a style for tag emission.default voidhandle(Component serializable, ClaimConsumer consumer) Attempt to process a component for serialization.
-
Method Details
-
handle
Description copied from interface:SerializableResolverAttempt to process a component for serialization.- Specified by:
handlein interfaceSerializableResolver- Parameters:
serializable- the component to serializeconsumer- a consumer for component claims, must not be stored
-
claimStyle
Claim a style for tag emission.Style emitters are additive -- a non-
nullresult will not terminate traversal of iterable tags. However, each style element can only be claimed once.- Returns:
- an emitable if this claimer handles some element of the provided style
- Since:
- 4.10.0
-
claimComponent
Claim a full component for tag emission.The first non-null result will be the only handler for this component. The component's style will be handled separately.
Children of the provided component should be ignored.
- Parameters:
component- the component to inspect- Returns:
- an emitable if this claimer handles the provided component type
- Since:
- 4.10.0
-