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

java.lang.Object
net.darkhax.bookshelf.common.api.commands.args.SingletonArgumentInfo.Template<T>
Type Parameters:
T - The argument type.
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>
A template that holds a cached argument singleton.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Template(Supplier<T> supplier, net.minecraft.commands.synchronization.ArgumentTypeInfo<T,?> info)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    instantiate(@NotNull net.minecraft.commands.CommandBuildContext ctx)
     
    @NotNull net.minecraft.commands.synchronization.ArgumentTypeInfo<T,?>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Template

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

    • instantiate

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

      @NotNull public @NotNull 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<?>>