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.
@FunctionalInterface public static interface TagResolver.WithoutArguments extends TagResolver
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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
has(@NotNull String name)
Check if this resolver knows of a tag.@Nullable Tag
resolve(@NotNull String name)
Resolve a tag based only on the provided name.default @Nullable Tag
resolve(@NotNull String name, @NotNull ArgumentQueue arguments, @NotNull Context ctx)
Gets a tag from this resolver based on the current state.
-
-
-
Method Detail
-
resolve
@Nullable @Nullable Tag resolve(@NotNull @NotNull String name)
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
default boolean has(@NotNull @NotNull String name)
Check if this resolver knows of a tag.- Specified by:
has
in interfaceTagResolver
- Parameters:
name
- the tag name- Returns:
- whether this tag is present
- Since:
- 4.10.0
-
resolve
@Nullable default @Nullable Tag resolve(@NotNull @NotNull String name, @NotNull @NotNull ArgumentQueue arguments, @NotNull @NotNull Context ctx) throws ParsingException
Description copied from interface:TagResolver
Gets a tag from this resolver based on the current state.- Specified by:
resolve
in 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
-
-