Interface WrappedBrigadierParser.ParseFunction<T>

Type Parameters:
T - result type
Enclosing class:
WrappedBrigadierParser<C,T>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@API(status=STABLE, since="1.8.0") @FunctionalInterface public static interface WrappedBrigadierParser.ParseFunction<T>
Function which can call ArgumentType.parse(StringReader) or another method.
Since:
1.8.0
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(com.mojang.brigadier.arguments.ArgumentType<T> type, com.mojang.brigadier.StringReader reader)
    Apply the parse function.
  • Method Details

    • apply

      T apply(com.mojang.brigadier.arguments.ArgumentType<T> type, com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Apply the parse function.
      Parameters:
      type - argument type
      reader - string reader
      Returns:
      result
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException - on failure