Package net.minecraft.server.commands
Class FunctionCommand
java.lang.Object
net.minecraft.server.commands.FunctionCommand
- 
Nested Class Summary
Nested Classes - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypestatic final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSourceStack> - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprivate static CompoundTaggetArgumentTag(NbtPathArgument.NbtPath p_298274_, DataAccessor p_301396_) static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_137715_) private static intrunFunction(CommandSourceStack p_137724_, Collection<CommandFunction> p_137725_, CompoundTag p_298676_) runFunction(CommandSourceStack p_300581_, CommandFunction p_300106_, CompoundTag p_300895_)  
- 
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_298274_, DataAccessor p_301396_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
runFunction
private static int runFunction(CommandSourceStack p_137724_, Collection<CommandFunction> p_137725_, @Nullable CompoundTag p_298676_)  - 
runFunction
public static FunctionCommand.FunctionResult runFunction(CommandSourceStack p_300581_, CommandFunction p_300106_, @Nullable CompoundTag p_300895_) throws FunctionInstantiationException - Throws:
 FunctionInstantiationException
 
 -