Interface ArgumentMapper<N,T>

Type Parameters:
N - native value type
T - mapped result type
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ArgumentMapper<N,T>
Converts a value parsed by a native argument type into a custom result type.
Since:
0.1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    map(N nativeValue, com.mojang.brigadier.StringReader reader)
     
  • Method Details

    • map

      T map(N nativeValue, com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException