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_333218_, String p_328819_)
    • parse

      public SlotRange parse(com.mojang.brigadier.StringReader p_329039_) 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_329445_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_329636_)
      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>