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_297380_, CommandFunction.Entry[] p_300955_, List<String> p_300316_) -
Method Summary
Modifier and TypeMethodDescriptioninstantiate
(CompoundTag p_300836_, com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_297591_, CommandSourceStack p_298828_) private static String
private CommandFunction
substituteAndParse
(List<String> p_300530_, com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_299533_, CommandSourceStack p_301159_) 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_297380_, CommandFunction.Entry[] p_300955_, List<String> p_300316_)
-
-
Method Details
-
instantiate
public CommandFunction instantiate(@Nullable CompoundTag p_300836_, com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_297591_, CommandSourceStack p_298828_) throws FunctionInstantiationException - Overrides:
instantiate
in classCommandFunction
- Throws:
FunctionInstantiationException
-
stringify
-
substituteAndParse
private CommandFunction substituteAndParse(List<String> p_300530_, com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_299533_, CommandSourceStack p_301159_) throws FunctionInstantiationException - Throws:
FunctionInstantiationException
-