Record Class GlobalPlaceholder
java.lang.Object
java.lang.Record
io.github.miniplaceholders.api.placeholder.GlobalPlaceholder
- Record Components:
key- the placeholder keyname- the placeholder nameresolver- the object responsible for providing information
- All Implemented Interfaces:
Placeholder, TagResolver
public record GlobalPlaceholder(String key, String name, GlobalTagResolver resolver)
extends Record
implements Placeholder
A placeholder that can obtain data without the need to provide an
Audience
or RelationalAudience.-
Nested Class Summary
Nested classes/interfaces inherited from interface TagResolver
TagResolver.Builder, TagResolver.Single, TagResolver.WithoutArguments -
Constructor Summary
ConstructorsConstructorDescriptionGlobalPlaceholder(String key, String name, GlobalTagResolver resolver) Creates an instance of aGlobalPlaceholderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.booleanfinal inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.name()Returns the value of thenamerecord component.resolve(String name, ArgumentQueue arguments, Context ctx) resolver()Returns the value of theresolverrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
resolve
- Specified by:
resolvein interfaceTagResolver
-
has
- Specified by:
hasin interfaceTagResolver
-
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). -
toString
-
hashCode
-
key
Returns the value of thekeyrecord component.- Specified by:
keyin interfacePlaceholder- Returns:
- the value of the
keyrecord component
-
name
Returns the value of thenamerecord component.- Specified by:
namein interfacePlaceholder- Returns:
- the value of the
namerecord component
-
resolver
-