Package net.minecraft.server.function
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
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) static interface
(package private) static class
Macro.VariableLine<T extends AbstractServerCommandSource<T>>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Object2ObjectLinkedOpenHashMap
<List<String>, Procedure<T>> private static final int
private static final DecimalFormat
private final Identifier
private final List
<Macro.Line<T>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
id()
private static String
toString
(NbtElement nbt) withMacroReplaced
(List<String> varNames, List<String> arguments, com.mojang.brigadier.CommandDispatcher<T> dispatcher) withMacroReplaced
(@Nullable NbtCompound arguments, com.mojang.brigadier.CommandDispatcher<T> dispatcher)
-
Field Details
-
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
- 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
private final Object2ObjectLinkedOpenHashMap<List<String>,Procedure<T extends AbstractServerCommandSource<T>>> 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
- 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:Lakq;
-
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
- 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>(Lakq;Ljava/util/List;Ljava/util/List;)V
-
-
Method Details
-
id
- Specified by:
id
in interfaceCommandFunction<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()Lakq;
-
withMacroReplaced
public Procedure<T> withMacroReplaced(@Nullable @Nullable NbtCompound arguments, com.mojang.brigadier.CommandDispatcher<T> dispatcher) throws MacroException - Specified by:
withMacroReplaced
in interfaceCommandFunction<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(Lua;Lcom/mojang/brigadier/CommandDispatcher;)Lii;
-
toString
- 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(Lux;)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;
-