Class SlotsArgument

java.lang.Object
net.minecraft.commands.arguments.SlotsArgument
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<SlotRange>

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

    • EXAMPLES

      private static final Collection<String> EXAMPLES
    • ERROR_UNKNOWN_SLOT

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_SLOT
  • Constructor Details

    • SlotsArgument

      public SlotsArgument()
  • Method Details

    • slots

      public static SlotsArgument slots()
    • getSlots

      public static SlotRange getSlots(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_332720_, String p_332685_)
    • parse

      public SlotRange parse(com.mojang.brigadier.StringReader p_332649_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<SlotRange>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • listSuggestions

      public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_332783_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_332759_)
      Specified by:
      listSuggestions in interface com.mojang.brigadier.arguments.ArgumentType<SlotRange>
    • getExamples

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