Class TestFunctionArgument

java.lang.Object
net.minecraft.gametest.framework.TestFunctionArgument
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<TestFunction>

public class TestFunctionArgument extends Object implements com.mojang.brigadier.arguments.ArgumentType<TestFunction>
  • Field Details

  • Constructor Details

    • TestFunctionArgument

      public TestFunctionArgument()
  • Method Details

    • parse

      public TestFunction parse(com.mojang.brigadier.StringReader pReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<TestFunction>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • testFunctionArgument

      public static TestFunctionArgument testFunctionArgument()
    • getTestFunction

      public static TestFunction getTestFunction(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pArgument)
    • listSuggestions

      public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> pContext, com.mojang.brigadier.suggestion.SuggestionsBuilder pBuilder)
      Specified by:
      listSuggestions in interface com.mojang.brigadier.arguments.ArgumentType<TestFunction>
    • suggestTestFunction

      public static <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestTestFunction(com.mojang.brigadier.context.CommandContext<S> pContext, com.mojang.brigadier.suggestion.SuggestionsBuilder pBuilder)
    • getExamples

      public Collection<String> getExamples()
      Specified by:
      getExamples in interface com.mojang.brigadier.arguments.ArgumentType<TestFunction>