Record Class StringTag
java.lang.Object
java.lang.Record
org.moddingx.launcherlib.nbt.tag.StringTag
- All Implemented Interfaces:
Tag
A string tag of type
TagType.STRING.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Makes a copy of this tag.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.type()Gets theTagTypefor this tag.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
StringTag
Creates an instance of aStringTagrecord class.- Parameters:
value- the value for thevaluerecord component
-
-
Method Details
-
type
-
copy
-
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). -
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-