Package net.minecraft.commands.functions
Interface CommandFunction<T>
- All Known Implementing Classes:
MacroFunction
,PlainTextFunction
public interface CommandFunction<T>
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkCommandLineLength
(CharSequence p_326091_) static <T extends ExecutionCommandSource<T>>
CommandFunction<T> fromLines
(ResourceLocation p_306082_, com.mojang.brigadier.CommandDispatcher<T> p_306046_, T p_305973_, List<String> p_306307_) id()
instantiate
(CompoundTag p_306231_, com.mojang.brigadier.CommandDispatcher<T> p_305923_) static <T extends ExecutionCommandSource<T>>
UnboundEntryAction<T> parseCommand
(com.mojang.brigadier.CommandDispatcher<T> p_306213_, T p_305785_, com.mojang.brigadier.StringReader p_306140_) private static boolean
shouldConcatenateNextLine
(CharSequence p_306338_)
-
Method Details
-
id
ResourceLocation id() -
instantiate
InstantiatedFunction<T> instantiate(@Nullable CompoundTag p_306231_, com.mojang.brigadier.CommandDispatcher<T> p_305923_) throws FunctionInstantiationException - Throws:
FunctionInstantiationException
-
shouldConcatenateNextLine
-
fromLines
static <T extends ExecutionCommandSource<T>> CommandFunction<T> fromLines(ResourceLocation p_306082_, com.mojang.brigadier.CommandDispatcher<T> p_306046_, T p_305973_, List<String> p_306307_) -
checkCommandLineLength
-
parseCommand
static <T extends ExecutionCommandSource<T>> UnboundEntryAction<T> parseCommand(com.mojang.brigadier.CommandDispatcher<T> p_306213_, T p_305785_, com.mojang.brigadier.StringReader p_306140_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-