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
-
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
ConstructorsConstructorDescriptionCreates 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.tag()Returns the value of thetagrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NbtDataComponentValue
-
-
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
-