Interface NativeArgumentTypes

All Known Implementing Classes:
PaperNativeArgumentTypes

interface NativeArgumentTypes
Server-specific argument seam; tests do not need Paper's native registry.
  • Method Summary

    Modifier and Type
    Method
    Description
    default Object
    resolve(Class<?> javaType, Object value, io.papermc.paper.command.brigadier.CommandSourceStack source)
     
    com.mojang.brigadier.arguments.ArgumentType<?>
    type(Class<?> javaType)
     
  • Method Details

    • type

      com.mojang.brigadier.arguments.ArgumentType<?> type(Class<?> javaType)
    • resolve

      default Object resolve(Class<?> javaType, Object value, io.papermc.paper.command.brigadier.CommandSourceStack source) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException