Package net.minecraft.text
Record Class StorageNbtText
java.lang.Object
java.lang.Record
net.minecraft.text.StorageNbtText
- Record Components:
id-
- All Implemented Interfaces:
class_7419
- Mappings:
Namespace Name official rqintermediary net/minecraft/class_4616named net/minecraft/text/StorageNbtTextofficial aintermediary comp_738named id
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.id()Returns the value of theidrecord component.toNbt(ServerCommandSource serverCommandSource) toString()Returns a string representation of this record class.
-
Field Details
-
id
The field for theidrecord component.
-
-
Constructor Details
-
StorageNbtText
-
-
Method Details
-
toNbt
- Specified by:
toNbtin interfaceclass_7419- Mappings:
Namespace Name Mixin selector official getDataLri;getData(Ldq;)Ljava/util/stream/Stream;intermediary method_10916Lnet/minecraft/class_7419;method_10916(Lnet/minecraft/class_2168;)Ljava/util/stream/Stream;named toNbtLnet/minecraft/class_7419;toNbt(Lnet/minecraft/server/command/ServerCommandSource;)Ljava/util/stream/Stream;
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-