Package net.minecraft.command
Record Class MacroInvocation
java.lang.Object
java.lang.Record
net.minecraft.command.MacroInvocation
- Record Components:
segments
-variables
-
- Mappings:
Namespace Name official hg
intermediary net/minecraft/class_8873
named net/minecraft/command/MacroInvocation
official a
intermediary comp_1996
named segments
official b
intermediary comp_1997
named variables
-
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.private static boolean
isValidMacroName
(String name) static MacroInvocation
segments()
Returns the value of thesegments
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thevariables
record component.
-
Field Details
-
Constructor Details
-
MacroInvocation
-
-
Method Details
-
parse
- Mappings:
Namespace Name Mixin selector official a
Lhg;a(Ljava/lang/String;I)Lhg;
intermediary method_54432
Lnet/minecraft/class_8873;method_54432(Ljava/lang/String;I)Lnet/minecraft/class_8873;
named parse
Lnet/minecraft/command/MacroInvocation;parse(Ljava/lang/String;I)Lnet/minecraft/command/MacroInvocation;
-
isValidMacroName
- Mappings:
Namespace Name Mixin selector official a
Lhg;a(Ljava/lang/String;)Z
intermediary method_54431
Lnet/minecraft/class_8873;method_54431(Ljava/lang/String;)Z
named isValidMacroName
Lnet/minecraft/command/MacroInvocation;isValidMacroName(Ljava/lang/String;)Z
-
apply
- Mappings:
Namespace Name Mixin selector official a
Lhg;a(Ljava/util/List;)Ljava/lang/String;
intermediary method_54433
Lnet/minecraft/class_8873;method_54433(Ljava/util/List;)Ljava/lang/String;
named apply
Lnet/minecraft/command/MacroInvocation;apply(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 thesegments
record component.- Returns:
- the value of the
segments
record component
-
variables
Returns the value of thevariables
record component.- Returns:
- the value of the
variables
record component
-