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 official he
intermediary net/minecraft/class_8641
named net/minecraft/server/function/Macro
-
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, T source) withMacroReplaced
(@Nullable NbtCompound nbtCompound, com.mojang.brigadier.CommandDispatcher<T> commandDispatcher, T t)
-
Field Details
-
DECIMAL_FORMAT
- Mappings:
Namespace Name Mixin selector official a
Lhe;a:Ljava/text/DecimalFormat;
intermediary field_46190
Lnet/minecraft/class_8641;field_46190:Ljava/text/DecimalFormat;
named DECIMAL_FORMAT
Lnet/minecraft/server/function/Macro;DECIMAL_FORMAT:Ljava/text/DecimalFormat;
-
CACHE_SIZE
private static final int CACHE_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lhe;b:I
intermediary field_45150
Lnet/minecraft/class_8641;field_45150:I
named CACHE_SIZE
Lnet/minecraft/server/function/Macro;CACHE_SIZE:I
-
varNames
- Mappings:
Namespace Name Mixin selector official c
Lhe;c:Ljava/util/List;
intermediary field_45149
Lnet/minecraft/class_8641;field_45149:Ljava/util/List;
named varNames
Lnet/minecraft/server/function/Macro;varNames:Ljava/util/List;
-
cache
private final Object2ObjectLinkedOpenHashMap<List<String>,Procedure<T extends AbstractServerCommandSource<T>>> cache- Mappings:
Namespace Name Mixin selector official d
Lhe;d:Lit/unimi/dsi/fastutil/objects/Object2ObjectLinkedOpenHashMap;
intermediary field_45151
Lnet/minecraft/class_8641;field_45151:Lit/unimi/dsi/fastutil/objects/Object2ObjectLinkedOpenHashMap;
named cache
Lnet/minecraft/server/function/Macro;cache:Lit/unimi/dsi/fastutil/objects/Object2ObjectLinkedOpenHashMap;
-
id
- Mappings:
Namespace Name Mixin selector official e
Lhe;e:Lahg;
intermediary field_46758
Lnet/minecraft/class_8641;field_46758:Lnet/minecraft/class_2960;
named id
Lnet/minecraft/server/function/Macro;id:Lnet/minecraft/util/Identifier;
-
lines
- Mappings:
Namespace Name Mixin selector official f
Lhe;f:Ljava/util/List;
intermediary field_46759
Lnet/minecraft/class_8641;field_46759:Ljava/util/List;
named lines
Lnet/minecraft/server/function/Macro;lines:Ljava/util/List;
-
-
Constructor Details
-
Macro
- Mappings:
Namespace Name Mixin selector official <init>
Lhe;<init>(Lahg;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
named <init>
Lnet/minecraft/server/function/Macro;<init>(Lnet/minecraft/util/Identifier;Ljava/util/List;Ljava/util/List;)V
-
-
Method Details
-
id
- Specified by:
id
in interfaceCommandFunction<T extends AbstractServerCommandSource<T>>
- Mappings:
Namespace Name Mixin selector official a
Lhb;a()Lahg;
intermediary comp_1994
Lnet/minecraft/class_2158;comp_1994()Lnet/minecraft/class_2960;
named id
Lnet/minecraft/server/function/CommandFunction;id()Lnet/minecraft/util/Identifier;
-
withMacroReplaced
public Procedure<T> withMacroReplaced(@Nullable @Nullable NbtCompound nbtCompound, com.mojang.brigadier.CommandDispatcher<T> commandDispatcher, T t) throws MacroException - Specified by:
withMacroReplaced
in interfaceCommandFunction<T extends AbstractServerCommandSource<T>>
- Throws:
MacroException
- Mappings:
Namespace Name Mixin selector official a
Lhe;a(Lsn;Lcom/mojang/brigadier/CommandDispatcher;Ldu;)Lhd;
intermediary method_54427
Lnet/minecraft/class_8641;method_54427(Lnet/minecraft/class_2487;Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_8839;)Lnet/minecraft/class_8868;
named withMacroReplaced
Lnet/minecraft/server/function/Macro;withMacroReplaced(Lnet/minecraft/nbt/NbtCompound;Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/server/command/AbstractServerCommandSource;)Lnet/minecraft/server/function/Procedure;
-
toString
- Mappings:
Namespace Name Mixin selector official a
Lhe;a(Ltk;)Ljava/lang/String;
intermediary method_53840
Lnet/minecraft/class_8641;method_53840(Lnet/minecraft/class_2520;)Ljava/lang/String;
named toString
Lnet/minecraft/server/function/Macro;toString(Lnet/minecraft/nbt/NbtElement;)Ljava/lang/String;
-
addArgumentsByIndices
private static void addArgumentsByIndices(List<String> arguments, IntList indices, List<String> out) - Mappings:
Namespace Name Mixin selector official a
Lhe;a(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
named addArgumentsByIndices
Lnet/minecraft/server/function/Macro;addArgumentsByIndices(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, T source) throws MacroException - Throws:
MacroException
- Mappings:
Namespace Name Mixin selector official a
Lhe;a(Ljava/util/List;Ljava/util/List;Lcom/mojang/brigadier/CommandDispatcher;Ldu;)Lhd;
intermediary method_52597
Lnet/minecraft/class_8641;method_52597(Ljava/util/List;Ljava/util/List;Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_8839;)Lnet/minecraft/class_8868;
named withMacroReplaced
Lnet/minecraft/server/function/Macro;withMacroReplaced(Ljava/util/List;Ljava/util/List;Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/server/command/AbstractServerCommandSource;)Lnet/minecraft/server/function/Procedure;
-