Class SingletonArgumentInfo.Template<T extends com.mojang.brigadier.arguments.ArgumentType<?>>

java.lang.Object
net.darkhax.bookshelf.api.commands.args.SingletonArgumentInfo.Template<T>
All Implemented Interfaces:
net.minecraft.commands.synchronization.ArgumentTypeInfo.Template<T>
Enclosing class:
SingletonArgumentInfo<T extends com.mojang.brigadier.arguments.ArgumentType<?>>

public static class SingletonArgumentInfo.Template<T extends com.mojang.brigadier.arguments.ArgumentType<?>> extends Object implements net.minecraft.commands.synchronization.ArgumentTypeInfo.Template<T>
  • Constructor Details

    • Template

      public Template(Supplier<T> supplier, net.minecraft.commands.synchronization.ArgumentTypeInfo<T,?> info)
  • Method Details

    • instantiate

      public T instantiate(net.minecraft.commands.CommandBuildContext ctx)
      Specified by:
      instantiate in interface net.minecraft.commands.synchronization.ArgumentTypeInfo.Template<T extends com.mojang.brigadier.arguments.ArgumentType<?>>
    • type

      public net.minecraft.commands.synchronization.ArgumentTypeInfo<T,?> type()
      Specified by:
      type in interface net.minecraft.commands.synchronization.ArgumentTypeInfo.Template<T extends com.mojang.brigadier.arguments.ArgumentType<?>>