Class Macro<T extends AbstractServerCommandSource<T>>

java.lang.Object
net.minecraft.server.function.Macro<T>
All Implemented Interfaces:
CommandFunction<T>

public class Macro<T extends AbstractServerCommandSource<T>> extends Object implements CommandFunction<T>
Mappings:
Namespace Name
named net/minecraft/server/function/Macro
intermediary net/minecraft/class_8641
official ij
  • Field Details

    • DECIMAL_FORMAT

      private static final DecimalFormat DECIMAL_FORMAT
      Mappings:
      Namespace Name Mixin selector
      named DECIMAL_FORMAT Lnet/minecraft/server/function/Macro;DECIMAL_FORMAT:Ljava/text/DecimalFormat;
      intermediary field_46190 Lnet/minecraft/class_8641;field_46190:Ljava/text/DecimalFormat;
      official a Lij;a:Ljava/text/DecimalFormat;
    • CACHE_SIZE

      private static final int CACHE_SIZE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named CACHE_SIZE Lnet/minecraft/server/function/Macro;CACHE_SIZE:I
      intermediary field_45150 Lnet/minecraft/class_8641;field_45150:I
      official b Lij;b:I
    • varNames

      private final List<String> varNames
      Mappings:
      Namespace Name Mixin selector
      named varNames Lnet/minecraft/server/function/Macro;varNames:Ljava/util/List;
      intermediary field_45149 Lnet/minecraft/class_8641;field_45149:Ljava/util/List;
      official c Lij;c:Ljava/util/List;
    • cache

      Mappings:
      Namespace Name Mixin selector
      named cache Lnet/minecraft/server/function/Macro;cache:Lit/unimi/dsi/fastutil/objects/Object2ObjectLinkedOpenHashMap;
      intermediary field_45151 Lnet/minecraft/class_8641;field_45151:Lit/unimi/dsi/fastutil/objects/Object2ObjectLinkedOpenHashMap;
      official d Lij;d:Lit/unimi/dsi/fastutil/objects/Object2ObjectLinkedOpenHashMap;
    • id

      private final Identifier id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/server/function/Macro;id:Lnet/minecraft/util/Identifier;
      intermediary field_46758 Lnet/minecraft/class_8641;field_46758:Lnet/minecraft/class_2960;
      official e Lij;e:Lakr;
    • lines

      private final List<Macro.Line<T extends AbstractServerCommandSource<T>>> lines
      Mappings:
      Namespace Name Mixin selector
      named lines Lnet/minecraft/server/function/Macro;lines:Ljava/util/List;
      intermediary field_46759 Lnet/minecraft/class_8641;field_46759:Ljava/util/List;
      official f Lij;f:Ljava/util/List;
  • Constructor Details

    • Macro

      public Macro(Identifier id, List<Macro.Line<T>> lines, List<String> varNames)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/server/function/Macro;<init>(Lnet/minecraft/util/Identifier;Ljava/util/List;Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_8641;<init>(Lnet/minecraft/class_2960;Ljava/util/List;Ljava/util/List;)V
      official <init> Lij;<init>(Lakr;Ljava/util/List;Ljava/util/List;)V
  • Method Details

    • id

      public Identifier id()
      Specified by:
      id in interface CommandFunction<T extends AbstractServerCommandSource<T>>
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/server/function/CommandFunction;id()Lnet/minecraft/util/Identifier;
      intermediary comp_1994 Lnet/minecraft/class_2158;comp_1994()Lnet/minecraft/class_2960;
      official a Lig;a()Lakr;
    • withMacroReplaced

      public Procedure<T> withMacroReplaced(@Nullable @Nullable NbtCompound arguments, com.mojang.brigadier.CommandDispatcher<T> dispatcher) throws MacroException
      Specified by:
      withMacroReplaced in interface CommandFunction<T extends AbstractServerCommandSource<T>>
      Throws:
      MacroException
      Mappings:
      Namespace Name Mixin selector
      named withMacroReplaced Lnet/minecraft/server/function/CommandFunction;withMacroReplaced(Lnet/minecraft/nbt/NbtCompound;Lcom/mojang/brigadier/CommandDispatcher;)Lnet/minecraft/server/function/Procedure;
      intermediary method_52595 Lnet/minecraft/class_2158;method_52595(Lnet/minecraft/class_2487;Lcom/mojang/brigadier/CommandDispatcher;)Lnet/minecraft/class_8868;
      official a Lig;a(Lub;Lcom/mojang/brigadier/CommandDispatcher;)Lii;
    • toString

      private static String toString(NbtElement nbt)
      Mappings:
      Namespace Name Mixin selector
      named toString Lnet/minecraft/server/function/Macro;toString(Lnet/minecraft/nbt/NbtElement;)Ljava/lang/String;
      intermediary method_53840 Lnet/minecraft/class_8641;method_53840(Lnet/minecraft/class_2520;)Ljava/lang/String;
      official a Lij;a(Luy;)Ljava/lang/String;
    • addArgumentsByIndices

      private static void addArgumentsByIndices(List<String> arguments, IntList indices, List<String> out)
      Mappings:
      Namespace Name Mixin selector
      named addArgumentsByIndices Lnet/minecraft/server/function/Macro;addArgumentsByIndices(Ljava/util/List;Lit/unimi/dsi/fastutil/ints/IntList;Ljava/util/List;)V
      intermediary method_54424 Lnet/minecraft/class_8641;method_54424(Ljava/util/List;Lit/unimi/dsi/fastutil/ints/IntList;Ljava/util/List;)V
      official a Lij;a(Ljava/util/List;Lit/unimi/dsi/fastutil/ints/IntList;Ljava/util/List;)V
    • withMacroReplaced

      private Procedure<T> withMacroReplaced(List<String> varNames, List<String> arguments, com.mojang.brigadier.CommandDispatcher<T> dispatcher) throws MacroException
      Throws:
      MacroException
      Mappings:
      Namespace Name Mixin selector
      named withMacroReplaced Lnet/minecraft/server/function/Macro;withMacroReplaced(Ljava/util/List;Ljava/util/List;Lcom/mojang/brigadier/CommandDispatcher;)Lnet/minecraft/server/function/Procedure;
      intermediary method_52597 Lnet/minecraft/class_8641;method_52597(Ljava/util/List;Ljava/util/List;Lcom/mojang/brigadier/CommandDispatcher;)Lnet/minecraft/class_8868;
      official a Lij;a(Ljava/util/List;Ljava/util/List;Lcom/mojang/brigadier/CommandDispatcher;)Lii;