Interface TagResolver.WithoutArguments
- All Superinterfaces:
TagResolver
- All Known Subinterfaces:
TagResolver.Single
- Enclosing interface:
- TagResolver
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A tag resolver that only handles tags which do not take arguments.
- Since:
- 4.10.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.kyori.adventure.text.minimessage.tag.resolver.TagResolver
TagResolver.Builder, TagResolver.Single, TagResolver.WithoutArguments -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanCheck if this resolver knows of a tag.@Nullable TagResolve a tag based only on the provided name.default @Nullable Tagresolve(@NotNull String name, @NotNull ArgumentQueue arguments, @NotNull Context ctx) Gets a tag from this resolver based on the current state.
-
Method Details
-
resolve
Resolve a tag based only on the provided name.- Parameters:
name- the provided name- Returns:
- a tag, if any is known.
- Since:
- 4.10.0
-
has
Check if this resolver knows of a tag.- Specified by:
hasin interfaceTagResolver- Parameters:
name- the tag name- Returns:
- whether this tag is present
- Since:
- 4.10.0
-
resolve
@Nullable default @Nullable Tag resolve(@TagPattern @NotNull @NotNull String name, @NotNull @NotNull ArgumentQueue arguments, @NotNull @NotNull Context ctx) throws ParsingException Description copied from interface:TagResolverGets a tag from this resolver based on the current state.- Specified by:
resolvein interfaceTagResolver- Parameters:
name- the tag namearguments- the arguments passed to the tagctx- the parse context- Returns:
- a possible tag
- Throws:
ParsingException- if the provided arguments are invalid
-