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_332928_) static <T extends ExecutionCommandSource<T>>
CommandFunction<T> fromLines
(ResourceLocation p_312869_, com.mojang.brigadier.CommandDispatcher<T> p_310963_, T p_312231_, List<String> p_310814_) id()
instantiate
(CompoundTag p_312196_, com.mojang.brigadier.CommandDispatcher<T> p_309930_) static <T extends ExecutionCommandSource<T>>
UnboundEntryAction<T> parseCommand
(com.mojang.brigadier.CommandDispatcher<T> p_310812_, T p_312436_, com.mojang.brigadier.StringReader p_310713_) private static boolean
shouldConcatenateNextLine
(CharSequence p_310145_)
-
Method Details
-
id
ResourceLocation id() -
instantiate
InstantiatedFunction<T> instantiate(@Nullable CompoundTag p_312196_, com.mojang.brigadier.CommandDispatcher<T> p_309930_) throws FunctionInstantiationException - Throws:
FunctionInstantiationException
-
shouldConcatenateNextLine
-
fromLines
static <T extends ExecutionCommandSource<T>> CommandFunction<T> fromLines(ResourceLocation p_312869_, com.mojang.brigadier.CommandDispatcher<T> p_310963_, T p_312231_, List<String> p_310814_) -
checkCommandLineLength
-
parseCommand
static <T extends ExecutionCommandSource<T>> UnboundEntryAction<T> parseCommand(com.mojang.brigadier.CommandDispatcher<T> p_310812_, T p_312436_, com.mojang.brigadier.StringReader p_310713_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-