Record Class PlaceholderTagResolver
java.lang.Object
java.lang.Record
io.github.miniplaceholders.api.placeholder.PlaceholderTagResolver
- Record Components:
placeholders- the placeholders to process
- All Implemented Interfaces:
TagResolver
public record PlaceholderTagResolver(Placeholder[] placeholders)
extends Record
implements TagResolver
A TagResolver responsible for containing and processing multiple placeholders.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.kyori.adventure.text.minimessage.tag.resolver.TagResolver
TagResolver.Builder, TagResolver.Single, TagResolver.WithoutArguments -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPlaceholderTagResolver(Placeholder... placeholders) Creates an instance of aPlaceholderTagResolverrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanfinal inthashCode()Returns a hash code value for this object.Returns the value of theplaceholdersrecord component.@Nullable Tagresolve(@NotNull String name, @NotNull ArgumentQueue arguments, @NotNull Context ctx) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
PlaceholderTagResolver
Creates an instance of aPlaceholderTagResolverrecord class.- Parameters:
placeholders- the value for theplaceholdersrecord component
-
-
Method Details
-
resolve
@Nullable public @Nullable Tag resolve(@NotNull @NotNull String name, @NotNull @NotNull ArgumentQueue arguments, @NotNull @NotNull Context ctx) throws ParsingException - Specified by:
resolvein interfaceTagResolver- Throws:
ParsingException
-
has
- Specified by:
hasin interfaceTagResolver
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
placeholders
Returns the value of theplaceholdersrecord component.- Returns:
- the value of the
placeholdersrecord component
-