Package net.minecraft.server.commands
Class FunctionCommand
java.lang.Object
net.minecraft.server.commands.FunctionCommand
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSourceStack>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static CompoundTag
getArgumentTag
(NbtPathArgument.NbtPath p_295114_, DataAccessor p_296132_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_137715_) private static int
runFunction
(CommandSourceStack p_296484_, Collection<CommandFunction> p_296332_, CompoundTag p_295499_) runFunction
(CommandSourceStack p_137724_, CommandFunction p_295814_, CompoundTag p_295422_)
-
Field Details
-
ERROR_ARGUMENT_NOT_COMPOUND
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_ARGUMENT_NOT_COMPOUND -
SUGGEST_FUNCTION
public static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSourceStack> SUGGEST_FUNCTION
-
-
Constructor Details
-
FunctionCommand
public FunctionCommand()
-
-
Method Details
-
register
-
getArgumentTag
private static CompoundTag getArgumentTag(NbtPathArgument.NbtPath p_295114_, DataAccessor p_296132_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
runFunction
private static int runFunction(CommandSourceStack p_296484_, Collection<CommandFunction> p_296332_, @Nullable CompoundTag p_295499_) -
runFunction
public static FunctionCommand.FunctionResult runFunction(CommandSourceStack p_137724_, CommandFunction p_295814_, @Nullable CompoundTag p_295422_) throws FunctionInstantiationException - Throws:
FunctionInstantiationException
-