Interface SimpleArgument<T>

All Superinterfaces:
ArgumentInf
All Known Subinterfaces:
MessageArgument, TimeArgument, VecArgument

@NullMarked @Deprecated(since="1.21.7", forRemoval=true) public interface SimpleArgument<T> extends ArgumentInf
Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> SimpleArgument<T>
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static <T> SimpleArgument<T>
    create(com.mojang.brigadier.arguments.ArgumentType<?> type, BiFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>,String,T> resolver)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    getData(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from interface moe.caramel.daydream.brigadier.argument.ArgumentInf

    get
  • Method Details

    • getData

      T getData(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • create

      @Internal static <T> SimpleArgument<T> create()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • create

      @Internal static <T> SimpleArgument<T> create(com.mojang.brigadier.arguments.ArgumentType<?> type, BiFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>,String,T> resolver)
      Deprecated, for removal: This API element is subject to removal in a future version.