Package net.minecraft.commands.functions
Interface CommandFunction<T>
- All Known Implementing Classes:
MacroFunction
,PlainTextFunction
public interface CommandFunction<T>
-
Method Summary
Modifier and TypeMethodDescriptionstatic <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_, T p_312979_) 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_, T p_312979_) 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_) -
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
-