Class SlotRangeArgumentType

java.lang.Object
net.minecraft.command.argument.SlotRangeArgumentType
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<SlotRange>

public class SlotRangeArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<SlotRange>
Mappings:
Namespace Name
named net/minecraft/command/argument/SlotRangeArgumentType
intermediary net/minecraft/class_9351
official fy
  • Field Details

    • EXAMPLES

      private static final Collection<String> EXAMPLES
      Mappings:
      Namespace Name Mixin selector
      named EXAMPLES Lnet/minecraft/command/argument/SlotRangeArgumentType;EXAMPLES:Ljava/util/Collection;
      intermediary field_49767 Lnet/minecraft/class_9351;field_49767:Ljava/util/Collection;
      official a Lfy;a:Ljava/util/Collection;
    • UNKNOWN_SLOT_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_SLOT_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      named UNKNOWN_SLOT_EXCEPTION Lnet/minecraft/command/argument/SlotRangeArgumentType;UNKNOWN_SLOT_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_49768 Lnet/minecraft/class_9351;field_49768:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      official b Lfy;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
  • Constructor Details

    • SlotRangeArgumentType

      public SlotRangeArgumentType()
  • Method Details

    • slotRange

      public static SlotRangeArgumentType slotRange()
      Mappings:
      Namespace Name Mixin selector
      named slotRange Lnet/minecraft/command/argument/SlotRangeArgumentType;slotRange()Lnet/minecraft/command/argument/SlotRangeArgumentType;
      intermediary method_58130 Lnet/minecraft/class_9351;method_58130()Lnet/minecraft/class_9351;
      official a Lfy;a()Lfy;
    • getSlotRange

      public static SlotRange getSlotRange(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
      Mappings:
      Namespace Name Mixin selector
      named getSlotRange Lnet/minecraft/command/argument/SlotRangeArgumentType;getSlotRange(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/inventory/SlotRange;
      intermediary method_58133 Lnet/minecraft/class_9351;method_58133(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_9348;
      official a Lfy;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lcrr;
    • parse

      public SlotRange parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<SlotRange>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/command/argument/SlotRangeArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/inventory/SlotRange;
      intermediary method_58132 Lnet/minecraft/class_9351;method_58132(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_9348;
      official a Lfy;a(Lcom/mojang/brigadier/StringReader;)Lcrr;
    • listSuggestions

      public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionsBuilder)
      Specified by:
      listSuggestions in interface com.mojang.brigadier.arguments.ArgumentType<SlotRange>
      Mappings:
      Namespace Name Mixin selector
      named listSuggestions Lnet/minecraft/command/argument/SlotRangeArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      intermediary listSuggestions Lnet/minecraft/class_9351;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      official listSuggestions Lfy;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
    • getExamples

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