Class ItemStringReader

java.lang.Object
net.minecraft.command.argument.ItemStringReader

public class ItemStringReader extends Object
Mappings:
Namespace Name
named net/minecraft/command/argument/ItemStringReader
intermediary net/minecraft/class_2291
official he
  • Field Details

    • INVALID_ITEM_ID_EXCEPTION

      static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_ITEM_ID_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      named INVALID_ITEM_ID_EXCEPTION Lnet/minecraft/command/argument/ItemStringReader;INVALID_ITEM_ID_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_50048 Lnet/minecraft/class_2291;field_50048:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      official f Lhe;f:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • UNKNOWN_COMPONENT_EXCEPTION

      static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_COMPONENT_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      named UNKNOWN_COMPONENT_EXCEPTION Lnet/minecraft/command/argument/ItemStringReader;UNKNOWN_COMPONENT_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_50049 Lnet/minecraft/class_2291;field_50049:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      official g Lhe;g:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • MALFORMED_COMPONENT_EXCEPTION

      static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType MALFORMED_COMPONENT_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      named MALFORMED_COMPONENT_EXCEPTION Lnet/minecraft/command/argument/ItemStringReader;MALFORMED_COMPONENT_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
      intermediary field_50050 Lnet/minecraft/class_2291;field_50050:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
      official h Lhe;h:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
    • COMPONENT_EXPECTED_EXCEPTION

      static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType COMPONENT_EXPECTED_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      named COMPONENT_EXPECTED_EXCEPTION Lnet/minecraft/command/argument/ItemStringReader;COMPONENT_EXPECTED_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      intermediary field_50051 Lnet/minecraft/class_2291;field_50051:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      official i Lhe;i:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
    • REPEATED_COMPONENT_EXCEPTION

      static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType REPEATED_COMPONENT_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      named REPEATED_COMPONENT_EXCEPTION Lnet/minecraft/command/argument/ItemStringReader;REPEATED_COMPONENT_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_50052 Lnet/minecraft/class_2291;field_50052:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      official j Lhe;j:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • MALFORMED_ITEM_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType MALFORMED_ITEM_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      named MALFORMED_ITEM_EXCEPTION Lnet/minecraft/command/argument/ItemStringReader;MALFORMED_ITEM_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_51458 Lnet/minecraft/class_2291;field_51458:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      official k Lhe;k:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • OPEN_SQUARE_BRACKET

      public static final char OPEN_SQUARE_BRACKET
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named OPEN_SQUARE_BRACKET Lnet/minecraft/command/argument/ItemStringReader;OPEN_SQUARE_BRACKET:C
      intermediary field_50044 Lnet/minecraft/class_2291;field_50044:C
      official a Lhe;a:C
    • CLOSED_SQUARE_BRACKET

      public static final char CLOSED_SQUARE_BRACKET
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named CLOSED_SQUARE_BRACKET Lnet/minecraft/command/argument/ItemStringReader;CLOSED_SQUARE_BRACKET:C
      intermediary field_50045 Lnet/minecraft/class_2291;field_50045:C
      official b Lhe;b:C
    • COMMA

      public static final char COMMA
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named COMMA Lnet/minecraft/command/argument/ItemStringReader;COMMA:C
      intermediary field_50046 Lnet/minecraft/class_2291;field_50046:C
      official c Lhe;c:C
    • EQUAL_SIGN

      public static final char EQUAL_SIGN
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named EQUAL_SIGN Lnet/minecraft/command/argument/ItemStringReader;EQUAL_SIGN:C
      intermediary field_50047 Lnet/minecraft/class_2291;field_50047:C
      official d Lhe;d:C
    • EXCLAMATION_MARK

      public static final char EXCLAMATION_MARK
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named EXCLAMATION_MARK Lnet/minecraft/command/argument/ItemStringReader;EXCLAMATION_MARK:C
      intermediary field_51831 Lnet/minecraft/class_2291;field_51831:C
      official e Lhe;e:C
    • SUGGEST_DEFAULT

      static final Function<com.mojang.brigadier.suggestion.SuggestionsBuilder,CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>> SUGGEST_DEFAULT
      Mappings:
      Namespace Name Mixin selector
      named SUGGEST_DEFAULT Lnet/minecraft/command/argument/ItemStringReader;SUGGEST_DEFAULT:Ljava/util/function/Function;
      intermediary field_50053 Lnet/minecraft/class_2291;field_50053:Ljava/util/function/Function;
      official l Lhe;l:Ljava/util/function/Function;
    • itemRegistry

      final RegistryWrapper.Impl<Item> itemRegistry
      Mappings:
      Namespace Name Mixin selector
      named itemRegistry Lnet/minecraft/command/argument/ItemStringReader;itemRegistry:Lnet/minecraft/registry/RegistryWrapper$Impl;
      intermediary field_50054 Lnet/minecraft/class_2291;field_50054:Lnet/minecraft/class_7225$class_7226;
      official m Lhe;m:Ljo$b;
    • nbtOps

      final com.mojang.serialization.DynamicOps<NbtElement> nbtOps
      Mappings:
      Namespace Name Mixin selector
      named nbtOps Lnet/minecraft/command/argument/ItemStringReader;nbtOps:Lcom/mojang/serialization/DynamicOps;
      intermediary field_50055 Lnet/minecraft/class_2291;field_50055:Lcom/mojang/serialization/DynamicOps;
      official n Lhe;n:Lcom/mojang/serialization/DynamicOps;
  • Constructor Details

    • ItemStringReader

      public ItemStringReader(RegistryWrapper.WrapperLookup registryLookup)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/command/argument/ItemStringReader;<init>(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
      intermediary <init> Lnet/minecraft/class_2291;<init>(Lnet/minecraft/class_7225$class_7874;)V
      official <init> Lhe;<init>(Ljo$a;)V
  • Method Details

    • consume

      public ItemStringReader.ItemResult consume(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named consume Lnet/minecraft/command/argument/ItemStringReader;consume(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/ItemStringReader$ItemResult;
      intermediary method_9789 Lnet/minecraft/class_2291;method_9789(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2291$class_7215;
      official a Lhe;a(Lcom/mojang/brigadier/StringReader;)Lhe$a;
    • validate

      private static void validate(com.mojang.brigadier.StringReader reader, RegistryEntry<Item> item, ComponentChanges components) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named validate Lnet/minecraft/command/argument/ItemStringReader;validate(Lcom/mojang/brigadier/StringReader;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/component/ComponentChanges;)V
      intermediary method_59769 Lnet/minecraft/class_2291;method_59769(Lcom/mojang/brigadier/StringReader;Lnet/minecraft/class_6880;Lnet/minecraft/class_9326;)V
      official a Lhe;a(Lcom/mojang/brigadier/StringReader;Ljm;Lkn;)V
    • consume

      public void consume(com.mojang.brigadier.StringReader reader, ItemStringReader.Callbacks callbacks) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named consume Lnet/minecraft/command/argument/ItemStringReader;consume(Lcom/mojang/brigadier/StringReader;Lnet/minecraft/command/argument/ItemStringReader$Callbacks;)V
      intermediary method_58517 Lnet/minecraft/class_2291;method_58517(Lcom/mojang/brigadier/StringReader;Lnet/minecraft/class_2291$class_9219;)V
      official a Lhe;a(Lcom/mojang/brigadier/StringReader;Lhe$d;)V
    • getSuggestions

      public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> getSuggestions(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
      Mappings:
      Namespace Name Mixin selector
      named getSuggestions Lnet/minecraft/command/argument/ItemStringReader;getSuggestions(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_9793 Lnet/minecraft/class_2291;method_9793(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      official a Lhe;a(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;