Package net.minecraft.commands
Class CommandFunction
java.lang.Object
net.minecraft.commands.CommandFunction
- Direct Known Subclasses:
CommandFunction.CommandMacro
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class(package private) static classstatic interfacestatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CommandFunction.Entry[](package private) final ResourceLocation -
Constructor Summary
ConstructorsConstructorDescriptionCommandFunction(ResourceLocation p_77979_, CommandFunction.Entry[] p_77980_) -
Method Summary
Modifier and TypeMethodDescriptionstatic CommandFunction.MacroEntrydecomposeMacro(String p_294979_, int p_294917_) static CommandFunctionfromLines(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 booleanisValidVariableName(String p_295590_) private static booleanshouldConcatenateNextLine(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
-