Record Class ModuleContributions.TagChange
java.lang.Object
java.lang.Record
com.ultikits.ultitools.bootstrap.ModuleContributions.TagChange
- Enclosing class:
ModuleContributions
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final io.papermc.paper.registry.RegistryKey<?> The field for theregistryrecord component.private final booleanThe field for thereplacerecord component.private final net.kyori.adventure.key.KeyThe field for thetagrecord component.private final List<net.kyori.adventure.key.Key> The field for thevaluesrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) ContentEntryentry()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.io.papermc.paper.registry.RegistryKey<?> registry()Returns the value of theregistryrecord component.booleanreplace()Returns the value of thereplacerecord component.net.kyori.adventure.key.Keytag()Returns the value of thetagrecord component.final StringtoString()Returns a string representation of this record class.List<net.kyori.adventure.key.Key> values()Returns the value of thevaluesrecord component.
-
Field Details
-
registry
private final io.papermc.paper.registry.RegistryKey<?> registryThe field for theregistryrecord component. -
tag
private final net.kyori.adventure.key.Key tagThe field for thetagrecord component. -
values
The field for thevaluesrecord component. -
replace
private final boolean replaceThe field for thereplacerecord component.
-
-
Constructor Details
-
TagChange
TagChange(io.papermc.paper.registry.RegistryKey<?> registry, net.kyori.adventure.key.Key tag, List<net.kyori.adventure.key.Key> values, boolean replace) Creates an instance of aTagChangerecord class.- Parameters:
registry- the value for theregistryrecord componenttag- the value for thetagrecord componentvalues- the value for thevaluesrecord componentreplace- the value for thereplacerecord component
-
-
Method Details
-
entry
ContentEntry entry() -
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
registry
public io.papermc.paper.registry.RegistryKey<?> registry()Returns the value of theregistryrecord component.- Returns:
- the value of the
registryrecord component
-
tag
public net.kyori.adventure.key.Key tag()Returns the value of thetagrecord component.- Returns:
- the value of the
tagrecord component
-
values
Returns the value of thevaluesrecord component.- Returns:
- the value of the
valuesrecord component
-
replace
public boolean replace()Returns the value of thereplacerecord component.- Returns:
- the value of the
replacerecord component
-