Class CommandFunction.MacroElement

java.lang.Object
net.minecraft.server.function.CommandFunction.MacroElement
All Implemented Interfaces:
CommandFunction.Element
Enclosing class:
CommandFunction

public static class CommandFunction.MacroElement extends Object implements CommandFunction.Element
Mappings:
Namespace Name
official dp$f
intermediary net/minecraft/class_2158$class_8642
named net/minecraft/server/function/CommandFunction$MacroElement
  • Field Details

    • parts

      private final List<String> parts
      Mappings:
      Namespace Name Mixin selector
      official a Ldp$f;a:Ljava/util/List;
      intermediary field_45152 Lnet/minecraft/class_2158$class_8642;field_45152:Ljava/util/List;
      named parts Lnet/minecraft/server/function/CommandFunction$MacroElement;parts:Ljava/util/List;
    • variables

      private final List<String> variables
      Mappings:
      Namespace Name Mixin selector
      official b Ldp$f;b:Ljava/util/List;
      intermediary field_45153 Lnet/minecraft/class_2158$class_8642;field_45153:Ljava/util/List;
      named variables Lnet/minecraft/server/function/CommandFunction$MacroElement;variables:Ljava/util/List;
  • Constructor Details

    • MacroElement

      public MacroElement(List<String> parts, List<String> variables)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldp$f;<init>(Ljava/util/List;Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_2158$class_8642;<init>(Ljava/util/List;Ljava/util/List;)V
      named <init> Lnet/minecraft/server/function/CommandFunction$MacroElement;<init>(Ljava/util/List;Ljava/util/List;)V
  • Method Details

    • getVariables

      public List<String> getVariables()
      Mappings:
      Namespace Name Mixin selector
      official a Ldp$f;a()Ljava/util/List;
      intermediary method_52598 Lnet/minecraft/class_2158$class_8642;method_52598()Ljava/util/List;
      named getVariables Lnet/minecraft/server/function/CommandFunction$MacroElement;getVariables()Ljava/util/List;
    • getCommand

      public String getCommand(List<String> arguments)
      Mappings:
      Namespace Name Mixin selector
      official a Ldp$f;a(Ljava/util/List;)Ljava/lang/String;
      intermediary method_52599 Lnet/minecraft/class_2158$class_8642;method_52599(Ljava/util/List;)Ljava/lang/String;
      named getCommand Lnet/minecraft/server/function/CommandFunction$MacroElement;getCommand(Ljava/util/List;)Ljava/lang/String;
    • execute

      public void execute(CommandFunctionManager manager, ServerCommandSource source, Deque<CommandFunctionManager.Entry> entries, int maxChainLength, int depth, @Nullable CommandFunctionManager.Tracer tracer) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      execute in interface CommandFunction.Element
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official execute Ldp$d;execute(Lafk;Ldt;Ljava/util/Deque;IILafk$c;)V
      intermediary method_9198 Lnet/minecraft/class_2158$class_2161;method_9198(Lnet/minecraft/class_2991;Lnet/minecraft/class_2168;Ljava/util/Deque;IILnet/minecraft/class_2991$class_6346;)V
      named execute Lnet/minecraft/server/function/CommandFunction$Element;execute(Lnet/minecraft/server/function/CommandFunctionManager;Lnet/minecraft/server/command/ServerCommandSource;Ljava/util/Deque;IILnet/minecraft/server/function/CommandFunctionManager$Tracer;)V