Record Class BinaryTagHolderImpl
java.lang.Object
java.lang.Record
net.minestom.server.adventure.BinaryTagHolderImpl
- All Implemented Interfaces:
BinaryTagHolder, DataComponentValue, DataComponentValue.TagSerializable, net.kyori.examination.Examinable
-
Nested Class Summary
Nested classes/interfaces inherited from interface DataComponentValue
DataComponentValue.Removed, DataComponentValue.TagSerializable -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aBinaryTagHolderImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.<T, DX extends Exception>
Tfinal inthashCode()Returns a hash code value for this object.nbt()Returns the value of thenbtrecord component.string()final StringtoString()Returns a string representation of this record class.Methods inherited from interface BinaryTagHolder
asBinaryTagMethods inherited from interface net.kyori.examination.Examinable
examinableName, examinableProperties, examine
-
Constructor Details
-
BinaryTagHolderImpl
Creates an instance of aBinaryTagHolderImplrecord class.- Parameters:
nbt- the value for thenbtrecord component
-
-
Method Details
-
string
- Specified by:
stringin interfaceBinaryTagHolder
-
get
- Specified by:
getin interfaceBinaryTagHolder- Throws:
DX
-
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). -
nbt
Returns the value of thenbtrecord component.- Returns:
- the value of the
nbtrecord component
-