Class CommandFunction.Macro

java.lang.Object
net.minecraft.server.function.CommandFunction
net.minecraft.server.function.CommandFunction.Macro
Enclosing class:
CommandFunction

private static class CommandFunction.Macro extends CommandFunction
Mappings:
Namespace Name
official dp$c
intermediary net/minecraft/class_2158$class_8641
named net/minecraft/server/function/CommandFunction$Macro
  • Field Details

    • DECIMAL_FORMAT

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

      private static final int CACHE_SIZE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Ldp$c;c:I
      intermediary field_45150 Lnet/minecraft/class_2158$class_8641;field_45150:I
      named CACHE_SIZE Lnet/minecraft/server/function/CommandFunction$Macro;CACHE_SIZE:I
    • variables

      private final List<String> variables
      Mappings:
      Namespace Name Mixin selector
      official b Ldp$c;b:Ljava/util/List;
      intermediary field_45149 Lnet/minecraft/class_2158$class_8641;field_45149:Ljava/util/List;
      named variables Lnet/minecraft/server/function/CommandFunction$Macro;variables:Ljava/util/List;
    • cache

      Mappings:
      Namespace Name Mixin selector
      official d Ldp$c;d:Lit/unimi/dsi/fastutil/objects/Object2ObjectLinkedOpenHashMap;
      intermediary field_45151 Lnet/minecraft/class_2158$class_8641;field_45151:Lit/unimi/dsi/fastutil/objects/Object2ObjectLinkedOpenHashMap;
      named cache Lnet/minecraft/server/function/CommandFunction$Macro;cache:Lit/unimi/dsi/fastutil/objects/Object2ObjectLinkedOpenHashMap;
  • Constructor Details

    • Macro

      public Macro(Identifier id, CommandFunction.Element[] elements, List<String> variables)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldp$c;<init>(Laew;[Ldp$d;Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_2158$class_8641;<init>(Lnet/minecraft/class_2960;[Lnet/minecraft/class_2158$class_2161;Ljava/util/List;)V
      named <init> Lnet/minecraft/server/function/CommandFunction$Macro;<init>(Lnet/minecraft/util/Identifier;[Lnet/minecraft/server/function/CommandFunction$Element;Ljava/util/List;)V
  • Method Details

    • withMacroReplaced

      public CommandFunction withMacroReplaced(@Nullable @Nullable NbtCompound arguments, com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, ServerCommandSource source) throws MacroException
      Overrides:
      withMacroReplaced in class CommandFunction
      Throws:
      MacroException
      Mappings:
      Namespace Name Mixin selector
      official a Ldp;a(Lqw;Lcom/mojang/brigadier/CommandDispatcher;Ldt;)Ldp;
      intermediary method_52595 Lnet/minecraft/class_2158;method_52595(Lnet/minecraft/class_2487;Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_2168;)Lnet/minecraft/class_2158;
      named withMacroReplaced Lnet/minecraft/server/function/CommandFunction;withMacroReplaced(Lnet/minecraft/nbt/NbtCompound;Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/server/command/ServerCommandSource;)Lnet/minecraft/server/function/CommandFunction;
    • toString

      private static String toString(NbtElement nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Ldp$c;a(Lrq;)Ljava/lang/String;
      intermediary method_53840 Lnet/minecraft/class_2158$class_8641;method_53840(Lnet/minecraft/class_2520;)Ljava/lang/String;
      named toString Lnet/minecraft/server/function/CommandFunction$Macro;toString(Lnet/minecraft/nbt/NbtElement;)Ljava/lang/String;
    • withMacroReplaced

      private CommandFunction withMacroReplaced(List<String> arguments, com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, ServerCommandSource source) throws MacroException
      Throws:
      MacroException
      Mappings:
      Namespace Name Mixin selector
      official a Ldp$c;a(Ljava/util/List;Lcom/mojang/brigadier/CommandDispatcher;Ldt;)Ldp;
      intermediary method_52597 Lnet/minecraft/class_2158$class_8641;method_52597(Ljava/util/List;Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_2168;)Lnet/minecraft/class_2158;
      named withMacroReplaced Lnet/minecraft/server/function/CommandFunction$Macro;withMacroReplaced(Ljava/util/List;Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/server/command/ServerCommandSource;)Lnet/minecraft/server/function/CommandFunction;