Record Class NbtDataComponentValue
java.lang.Object
java.lang.Record
org.geysermc.adventure.text.serializer.nbt.NbtDataComponentValue
- Record Components:
tag- the value of a data component
- All Implemented Interfaces:
net.kyori.adventure.text.event.DataComponentValue
public record NbtDataComponentValue(com.viaversion.nbt.tag.Tag tag)
extends Record
implements net.kyori.adventure.text.event.DataComponentValue
Holds the raw value of a data component, serialized to NBT.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.kyori.adventure.text.event.DataComponentValue
net.kyori.adventure.text.event.DataComponentValue.Removed, net.kyori.adventure.text.event.DataComponentValue.TagSerializable -
Constructor Summary
ConstructorsConstructorDescriptionNbtDataComponentValue(com.viaversion.nbt.tag.Tag tag) Creates an instance of aNbtDataComponentValuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.viaversion.nbt.tag.Tagtag()Returns the value of thetagrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NbtDataComponentValue
public NbtDataComponentValue(com.viaversion.nbt.tag.Tag tag) Creates an instance of aNbtDataComponentValuerecord class.- Parameters:
tag- the value for thetagrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
tag
-