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_294979_, int p_294917_) static CommandFunction
fromLines
(ResourceLocation p_77985_, com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_77986_, CommandSourceStack p_77987_, List<String> p_77988_) getId()
instantiate
(CompoundTag p_294718_, com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_294805_, CommandSourceStack p_295042_) private static boolean
isValidVariableName
(String p_295590_) private static boolean
shouldConcatenateNextLine
(CharSequence p_294821_)
-
Field Details
-
entries
-
id
-
-
Constructor Details
-
CommandFunction
-
-
Method Details
-
getId
-
getEntries
-
instantiate
public CommandFunction instantiate(@Nullable CompoundTag p_294718_, com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_294805_, CommandSourceStack p_295042_) 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
-