Package net.minecraft.command.argument
Class TestFunctionArgumentType
java.lang.Object
net.minecraft.command.argument.TestFunctionArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<TestFunction>
public class TestFunctionArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<TestFunction>
-
Field Summary
Fields Modifier and Type Field Description private static Collection<String>EXAMPLES -
Constructor Summary
Constructors Constructor Description TestFunctionArgumentType() -
Method Summary
Modifier and Type Method Description Collection<String>getExamples()static TestFunctiongetFunction(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>listSuggestions(com.mojang.brigadier.context.CommandContext<S> commandContext, com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionsBuilder)TestFunctionparse(com.mojang.brigadier.StringReader stringReader)static TestFunctionArgumentTypetestFunction()
-
Field Details
-
EXAMPLES
-
-
Constructor Details
-
TestFunctionArgumentType
public TestFunctionArgumentType()
-
-
Method Details
-
parse
public TestFunction parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<TestFunction>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
testFunction
-
getFunction
public static TestFunction getFunction(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) -
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> commandContext, com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionsBuilder)- Specified by:
listSuggestionsin interfacecom.mojang.brigadier.arguments.ArgumentType<TestFunction>
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<TestFunction>
-