Record Class Symbol<T>
java.lang.Object
java.lang.Record
net.minecraft.command.argument.packrat.Symbol<T>
- Record Components:
name
-
- Mappings:
Namespace Name named net/minecraft/command/argument/packrat/Symbol
intermediary net/minecraft/class_9387
official bmj
named name
intermediary comp_2468
official a
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.static <T> Symbol
<T> toString()
Returns a string representation of this record class.
-
Field Details
-
name
The field for thename
record 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 named of
Lnet/minecraft/command/argument/packrat/Symbol;of(Ljava/lang/String;)Lnet/minecraft/command/argument/packrat/Symbol;
intermediary method_58298
Lnet/minecraft/class_9387;method_58298(Ljava/lang/String;)Lnet/minecraft/class_9387;
official a
Lbmj;a(Ljava/lang/String;)Lbmj;
-
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 thename
record component.- Returns:
- the value of the
name
record component
-