Class PaperNativeArgumentTypes

java.lang.Object
com.ultikits.ultitools.command.engine.PaperNativeArgumentTypes
All Implemented Interfaces:
NativeArgumentTypes

final class PaperNativeArgumentTypes extends Object implements NativeArgumentTypes
Only this adapter asks Paper for native argument implementations.
  • Constructor Details

    • PaperNativeArgumentTypes

      PaperNativeArgumentTypes()
  • Method Details

    • type

      public com.mojang.brigadier.arguments.ArgumentType<?> type(Class<?> type)
      Specified by:
      type in interface NativeArgumentTypes
    • resourceOrPosition

      private static com.mojang.brigadier.arguments.ArgumentType<?> resourceOrPosition(Class<?> type)
    • resolve

      public Object resolve(Class<?> type, Object value, io.papermc.paper.command.brigadier.CommandSourceStack source) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      resolve in interface NativeArgumentTypes
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException