Class StatArgumentType

java.lang.Object
io.github.thecsdev.tcdcommons.api.command.argument.StatArgumentType
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<net.minecraft.util.Identifier>

@Internal @Experimental public final class StatArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<net.minecraft.util.Identifier>
An ApiStatus.Internal ArgumentType used by "Better statistics screen".
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.util.Identifier
    The unique Identifier used to register this ArgumentType to the Registries.COMMAND_ARGUMENT_TYPE Registry.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
    listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
     
    final net.minecraft.util.Identifier
    parse(com.mojang.brigadier.StringReader reader)
     
     
    stat(net.minecraft.stat.StatType<?> statType)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.mojang.brigadier.arguments.ArgumentType

    getExamples
  • Field Details

    • ID

      public static final net.minecraft.util.Identifier ID
      The unique Identifier used to register this ArgumentType to the Registries.COMMAND_ARGUMENT_TYPE Registry.
  • Method Details

    • listSuggestions

      public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
      Specified by:
      listSuggestions in interface com.mojang.brigadier.arguments.ArgumentType<net.minecraft.util.Identifier>
    • parse

      public final net.minecraft.util.Identifier parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<net.minecraft.util.Identifier>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • stat

      public static StatArgumentType stat()
    • stat

      public static StatArgumentType stat(net.minecraft.stat.StatType<?> statType)
    • fromArgument

      public static StatArgumentType fromArgument(String argName)