Package net.minecraft.text
Record Class StorageNbtDataSource
java.lang.Object
java.lang.Record
net.minecraft.text.StorageNbtDataSource
- Record Components:
id
-
- All Implemented Interfaces:
NbtDataSource
- Mappings:
Namespace Name official uf
intermediary net/minecraft/class_4616
named net/minecraft/text/StorageNbtDataSource
official a
intermediary comp_738
named id
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.get
(ServerCommandSource source) final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.toString()
Returns a string representation of this record class.
-
Field Details
-
id
The field for theid
record component.
-
-
Constructor Details
-
StorageNbtDataSource
-
-
Method Details
-
get
- Specified by:
get
in interfaceNbtDataSource
- Mappings:
Namespace Name Mixin selector official getData
Ltx;getData(Lds;)Ljava/util/stream/Stream;
intermediary method_10916
Lnet/minecraft/class_7419;method_10916(Lnet/minecraft/class_2168;)Ljava/util/stream/Stream;
named get
Lnet/minecraft/text/NbtDataSource;get(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 theid
record component.- Returns:
- the value of the
id
record component
-