Class ScoreboardSlotArgumentType

java.lang.Object
net.minecraft.command.arguments.ScoreboardSlotArgumentType
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Integer>

public class ScoreboardSlotArgumentType
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<Integer>
  • Field Details

  • Constructor Details

  • Method Details

    • scoreboardSlot

      public static ScoreboardSlotArgumentType scoreboardSlot()
    • getScorebordSlot

      public static int getScorebordSlot​(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
    • parse

      public Integer parse​(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<Integer>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • 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<Integer>
    • getExamples

      public Collection<String> getExamples()
      Specified by:
      getExamples in interface com.mojang.brigadier.arguments.ArgumentType<Integer>