Record Class Symbol<T>
java.lang.Object
java.lang.Record
net.minecraft.command.argument.packrat.Symbol<T>
- Record Components:
name-
- Mappings:
Namespace Name official blaintermediary net/minecraft/class_9387named net/minecraft/command/argument/packrat/Symbolofficial aintermediary comp_2468named name
-
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.name()Returns the value of thenamerecord component.static <T> Symbol<T> toString()Returns a string representation of this record class.
-
Field Details
-
name
The field for thenamerecord component.
-
-
Constructor Details
-
Symbol
-
-
Method Details
-
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. -
of
- Mappings:
Namespace Name Mixin selector official aLbla;a(Ljava/lang/String;)Lbla;intermediary method_58298Lnet/minecraft/class_9387;method_58298(Ljava/lang/String;)Lnet/minecraft/class_9387;named ofLnet/minecraft/command/argument/packrat/Symbol;of(Ljava/lang/String;)Lnet/minecraft/command/argument/packrat/Symbol;
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-