Package com.thewinterframework.component
Class Tags
java.lang.Object
com.thewinterframework.component.Tags
Utility class for creating tag resolvers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a tag resolver to the list of resolvers.Adds a tag resolver to the list of resolvers.Adds a tag resolver to the list of resolvers.Adds a tag resolver to the list of resolvers.Adds a tag resolver to the list of resolvers.Adds a tag resolver to the list of resolvers.Adds a tag resolver to the list of resolvers.add(net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Adds a tag resolver to the list of resolvers.net.kyori.adventure.text.minimessage.tag.resolver.TagResolverbuild()Builds the tag resolver.static Tagscreate()Creates a new tags instance.static net.kyori.adventure.text.minimessage.tag.resolver.TagResolverCreates a new tag resolver from the given objects.
-
Constructor Details
-
Tags
public Tags()
-
-
Method Details
-
create
Creates a new tags instance.- Returns:
- The new tags instance.
-
from
Creates a new tag resolver from the given objects.
The objects must be in the format key, value, key, value, ...- Parameters:
objects- The objects to create the tag resolver from.- Returns:
- The new tag resolver.
-
add
Adds a tag resolver to the list of resolvers.- Parameters:
resolver- The resolver to add.- Returns:
- The tags instance.
-
add
Adds a tag resolver to the list of resolvers.- Parameters:
placeholder- The placeholder to add.tag- The tag to add.- Returns:
- The tags instance.
-
add
Adds a tag resolver to the list of resolvers.- Parameters:
placeholder- The placeholder to add.component- The component to add.- Returns:
- The tags instance.
-
add
Adds a tag resolver to the list of resolvers.- Parameters:
placeholder- The placeholder to add.unknown- The unknown object to add.- Returns:
- The tags instance.
-
add
Adds a tag resolver to the list of resolvers.- Parameters:
placeholder- The placeholder to add.text- The text to add.- Returns:
- The tags instance.
-
add
Adds a tag resolver to the list of resolvers.- Parameters:
placeholder- The placeholder to add.number- The number to add.- Returns:
- The tags instance.
-
add
Adds a tag resolver to the list of resolvers.- Parameters:
placeholder- The placeholder to add.number- The number to add.- Returns:
- The tags instance.
-
add
Adds a tag resolver to the list of resolvers.- Parameters:
placeholder- The placeholder to add.number- The number to add.- Returns:
- The tags instance.
-
build
public net.kyori.adventure.text.minimessage.tag.resolver.TagResolver build()Builds the tag resolver.
-