Package net.minecraft.commands
Class CommandFunction.CommandMacro
java.lang.Object
net.minecraft.commands.CommandFunction
net.minecraft.commands.CommandFunction.CommandMacro
- Enclosing class:
CommandFunction
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.commands.CommandFunction
CommandFunction.CacheableFunction, CommandFunction.CommandEntry, CommandFunction.CommandMacro, CommandFunction.Entry, CommandFunction.FunctionEntry, CommandFunction.MacroEntry
-
Field Summary
Modifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.objects.Object2ObjectLinkedOpenHashMap<List<String>,
CommandFunction> private static final DecimalFormat
private static final int
Fields inherited from class net.minecraft.commands.CommandFunction
id
-
Constructor Summary
ConstructorDescriptionCommandMacro
(ResourceLocation p_296430_, CommandFunction.Entry[] p_294679_, List<String> p_295880_) -
Method Summary
Modifier and TypeMethodDescriptioninstantiate
(CompoundTag p_295120_, com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_294437_, CommandSourceStack p_295334_) private static String
private CommandFunction
substituteAndParse
(List<String> p_295911_, com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_294472_, CommandSourceStack p_295841_) Methods inherited from class net.minecraft.commands.CommandFunction
decomposeMacro, fromLines, getEntries, getId
-
Field Details
-
DECIMAL_FORMAT
-
parameters
-
MAX_CACHE_ENTRIES
private static final int MAX_CACHE_ENTRIES- See Also:
-
cache
private final it.unimi.dsi.fastutil.objects.Object2ObjectLinkedOpenHashMap<List<String>,CommandFunction> cache
-
-
Constructor Details
-
CommandMacro
public CommandMacro(ResourceLocation p_296430_, CommandFunction.Entry[] p_294679_, List<String> p_295880_)
-
-
Method Details
-
instantiate
public CommandFunction instantiate(@Nullable CompoundTag p_295120_, com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_294437_, CommandSourceStack p_295334_) throws FunctionInstantiationException - Overrides:
instantiate
in classCommandFunction
- Throws:
FunctionInstantiationException
-
stringify
-
substituteAndParse
private CommandFunction substituteAndParse(List<String> p_295911_, com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_294472_, CommandSourceStack p_295841_) throws FunctionInstantiationException - Throws:
FunctionInstantiationException
-