Package net.minecraft.commands
Class CommandFunction
java.lang.Object
net.minecraft.commands.CommandFunction
- Direct Known Subclasses:
CommandFunction.CommandMacro
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
(package private) static class
static interface
static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate final CommandFunction.Entry[]
(package private) final ResourceLocation
-
Constructor Summary
ConstructorDescriptionCommandFunction
(ResourceLocation p_77979_, CommandFunction.Entry[] p_77980_) -
Method Summary
Modifier and TypeMethodDescriptionstatic CommandFunction.MacroEntry
decomposeMacro
(String p_301200_, int p_300045_) static CommandFunction
fromLines
(ResourceLocation p_77985_, com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_77986_, CommandSourceStack p_77987_, List<String> p_77988_) getId()
instantiate
(CompoundTag p_300636_, com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_300698_, CommandSourceStack p_298553_) private static boolean
isValidVariableName
(String p_299170_) private static boolean
shouldConcatenateNextLine
(CharSequence p_298962_)
-
Field Details
-
entries
-
id
-
-
Constructor Details
-
CommandFunction
-
-
Method Details
-
getId
-
getEntries
-
instantiate
public CommandFunction instantiate(@Nullable CompoundTag p_300636_, com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_300698_, CommandSourceStack p_298553_) throws FunctionInstantiationException - Throws:
FunctionInstantiationException
-
shouldConcatenateNextLine
-
fromLines
public static CommandFunction fromLines(ResourceLocation p_77985_, com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_77986_, CommandSourceStack p_77987_, List<String> p_77988_) -
decomposeMacro
-
isValidVariableName
-