Package net.minecraft.command
Record Class MacroInvocation
java.lang.Object
java.lang.Record
net.minecraft.command.MacroInvocation
- Record Components:
segments-variables-
- Mappings:
Namespace Name named net/minecraft/command/MacroInvocationintermediary net/minecraft/class_8873official ilnamed segmentsintermediary comp_1996official anamed variablesintermediary comp_1997official b
-
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.private static booleanisValidMacroName(String name) static MacroInvocationsegments()Returns the value of thesegmentsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevariablesrecord component.
-
Field Details
-
Constructor Details
-
MacroInvocation
-
-
Method Details
-
parse
- Mappings:
Namespace Name Mixin selector named parseLnet/minecraft/command/MacroInvocation;parse(Ljava/lang/String;I)Lnet/minecraft/command/MacroInvocation;intermediary method_54432Lnet/minecraft/class_8873;method_54432(Ljava/lang/String;I)Lnet/minecraft/class_8873;official aLil;a(Ljava/lang/String;I)Lil;
-
isValidMacroName
- Mappings:
Namespace Name Mixin selector named isValidMacroNameLnet/minecraft/command/MacroInvocation;isValidMacroName(Ljava/lang/String;)Zintermediary method_54431Lnet/minecraft/class_8873;method_54431(Ljava/lang/String;)Zofficial aLil;a(Ljava/lang/String;)Z
-
apply
- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/command/MacroInvocation;apply(Ljava/util/List;)Ljava/lang/String;intermediary method_54433Lnet/minecraft/class_8873;method_54433(Ljava/util/List;)Ljava/lang/String;official aLil;a(Ljava/util/List;)Ljava/lang/String;
-
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). -
segments
Returns the value of thesegmentsrecord component.- Returns:
- the value of the
segmentsrecord component
-
variables
Returns the value of thevariablesrecord component.- Returns:
- the value of the
variablesrecord component
-