Class ItemStringReader

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

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

    • TAG_DISALLOWED_EXCEPTION

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType TAG_DISALLOWED_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official a Lfj;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      intermediary field_10800 Lnet/minecraft/class_2291;field_10800:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      named TAG_DISALLOWED_EXCEPTION Lnet/minecraft/command/argument/ItemStringReader;TAG_DISALLOWED_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
    • ID_INVALID_EXCEPTION

      public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ID_INVALID_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official b Lfj;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_10799 Lnet/minecraft/class_2291;field_10799:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      named ID_INVALID_EXCEPTION Lnet/minecraft/command/argument/ItemStringReader;ID_INVALID_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • LEFT_CURLY_BRACKET

      private static final char LEFT_CURLY_BRACKET
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lfj;c:C
      intermediary field_33066 Lnet/minecraft/class_2291;field_33066:C
      named LEFT_CURLY_BRACKET Lnet/minecraft/command/argument/ItemStringReader;LEFT_CURLY_BRACKET:C
    • HASH_SIGN

      private static final char HASH_SIGN
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lfj;d:C
      intermediary field_33067 Lnet/minecraft/class_2291;field_33067:C
      named HASH_SIGN Lnet/minecraft/command/argument/ItemStringReader;HASH_SIGN:C
    • NBT_SUGGESTION_PROVIDER

      private static final BiFunction<com.mojang.brigadier.suggestion.SuggestionsBuilder,TagGroup<Item>,CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>> NBT_SUGGESTION_PROVIDER
      Mappings:
      Namespace Name Mixin selector
      official e Lfj;e:Ljava/util/function/BiFunction;
      intermediary field_10806 Lnet/minecraft/class_2291;field_10806:Ljava/util/function/BiFunction;
      named NBT_SUGGESTION_PROVIDER Lnet/minecraft/command/argument/ItemStringReader;NBT_SUGGESTION_PROVIDER:Ljava/util/function/BiFunction;
    • reader

      private final com.mojang.brigadier.StringReader reader
      Mappings:
      Namespace Name Mixin selector
      official f Lfj;f:Lcom/mojang/brigadier/StringReader;
      intermediary field_10802 Lnet/minecraft/class_2291;field_10802:Lcom/mojang/brigadier/StringReader;
      named reader Lnet/minecraft/command/argument/ItemStringReader;reader:Lcom/mojang/brigadier/StringReader;
    • allowTag

      private final boolean allowTag
      Mappings:
      Namespace Name Mixin selector
      official g Lfj;g:Z
      intermediary field_10804 Lnet/minecraft/class_2291;field_10804:Z
      named allowTag Lnet/minecraft/command/argument/ItemStringReader;allowTag:Z
    • item

      private Item item
      Mappings:
      Namespace Name Mixin selector
      official h Lfj;h:Lbtt;
      intermediary field_10803 Lnet/minecraft/class_2291;field_10803:Lnet/minecraft/class_1792;
      named item Lnet/minecraft/command/argument/ItemStringReader;item:Lnet/minecraft/item/Item;
    • nbt

      Mappings:
      Namespace Name Mixin selector
      official i Lfj;i:Lob;
      intermediary field_10807 Lnet/minecraft/class_2291;field_10807:Lnet/minecraft/class_2487;
      named nbt Lnet/minecraft/command/argument/ItemStringReader;nbt:Lnet/minecraft/nbt/NbtCompound;
    • id

      private Identifier id
      Mappings:
      Namespace Name Mixin selector
      official j Lfj;j:Lyb;
      intermediary field_10808 Lnet/minecraft/class_2291;field_10808:Lnet/minecraft/class_2960;
      named id Lnet/minecraft/command/argument/ItemStringReader;id:Lnet/minecraft/util/Identifier;
    • cursor

      private int cursor
      Mappings:
      Namespace Name Mixin selector
      official k Lfj;k:I
      intermediary field_10809 Lnet/minecraft/class_2291;field_10809:I
      named cursor Lnet/minecraft/command/argument/ItemStringReader;cursor:I
    • suggestions

      private BiFunction<com.mojang.brigadier.suggestion.SuggestionsBuilder,TagGroup<Item>,CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>> suggestions
      Mappings:
      Namespace Name Mixin selector
      official l Lfj;l:Ljava/util/function/BiFunction;
      intermediary field_10805 Lnet/minecraft/class_2291;field_10805:Ljava/util/function/BiFunction;
      named suggestions Lnet/minecraft/command/argument/ItemStringReader;suggestions:Ljava/util/function/BiFunction;
  • Constructor Details

    • ItemStringReader

      public ItemStringReader(com.mojang.brigadier.StringReader reader, boolean allowTag)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfj;<init>(Lcom/mojang/brigadier/StringReader;Z)V
      intermediary <init> Lnet/minecraft/class_2291;<init>(Lcom/mojang/brigadier/StringReader;Z)V
      named <init> Lnet/minecraft/command/argument/ItemStringReader;<init>(Lcom/mojang/brigadier/StringReader;Z)V
  • Method Details

    • getItem

      public Item getItem()
      Mappings:
      Namespace Name Mixin selector
      official a Lfj;a()Lbtt;
      intermediary method_9786 Lnet/minecraft/class_2291;method_9786()Lnet/minecraft/class_1792;
      named getItem Lnet/minecraft/command/argument/ItemStringReader;getItem()Lnet/minecraft/item/Item;
    • getNbt

      @Nullable public @Nullable NbtCompound getNbt()
      Mappings:
      Namespace Name Mixin selector
      official b Lfj;b()Lob;
      intermediary method_9797 Lnet/minecraft/class_2291;method_9797()Lnet/minecraft/class_2487;
      named getNbt Lnet/minecraft/command/argument/ItemStringReader;getNbt()Lnet/minecraft/nbt/NbtCompound;
    • getId

      public Identifier getId()
      Mappings:
      Namespace Name Mixin selector
      official c Lfj;c()Lyb;
      intermediary method_9790 Lnet/minecraft/class_2291;method_9790()Lnet/minecraft/class_2960;
      named getId Lnet/minecraft/command/argument/ItemStringReader;getId()Lnet/minecraft/util/Identifier;
    • readItem

      public void readItem() throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official d Lfj;d()V
      intermediary method_9795 Lnet/minecraft/class_2291;method_9795()V
      named readItem Lnet/minecraft/command/argument/ItemStringReader;readItem()V
    • readTag

      public void readTag() throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official e Lfj;e()V
      intermediary method_9787 Lnet/minecraft/class_2291;method_9787()V
      named readTag Lnet/minecraft/command/argument/ItemStringReader;readTag()V
    • readNbt

      public void readNbt() throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official f Lfj;f()V
      intermediary method_9788 Lnet/minecraft/class_2291;method_9788()V
      named readNbt Lnet/minecraft/command/argument/ItemStringReader;readNbt()V
    • consume

      public ItemStringReader consume() throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official g Lfj;g()Lfj;
      intermediary method_9789 Lnet/minecraft/class_2291;method_9789()Lnet/minecraft/class_2291;
      named consume Lnet/minecraft/command/argument/ItemStringReader;consume()Lnet/minecraft/command/argument/ItemStringReader;
    • suggestItem

      private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestItem(com.mojang.brigadier.suggestion.SuggestionsBuilder builder, TagGroup<Item> group)
      Mappings:
      Namespace Name Mixin selector
      official b Lfj;b(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lahm;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_9794 Lnet/minecraft/class_2291;method_9794(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lnet/minecraft/class_5414;)Ljava/util/concurrent/CompletableFuture;
      named suggestItem Lnet/minecraft/command/argument/ItemStringReader;suggestItem(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lnet/minecraft/tag/TagGroup;)Ljava/util/concurrent/CompletableFuture;
    • suggestTag

      private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestTag(com.mojang.brigadier.suggestion.SuggestionsBuilder builder, TagGroup<Item> group)
      Mappings:
      Namespace Name Mixin selector
      official c Lfj;c(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lahm;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_9796 Lnet/minecraft/class_2291;method_9796(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lnet/minecraft/class_5414;)Ljava/util/concurrent/CompletableFuture;
      named suggestTag Lnet/minecraft/command/argument/ItemStringReader;suggestTag(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lnet/minecraft/tag/TagGroup;)Ljava/util/concurrent/CompletableFuture;
    • suggestAny

      private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestAny(com.mojang.brigadier.suggestion.SuggestionsBuilder builder, TagGroup<Item> group)
      Mappings:
      Namespace Name Mixin selector
      official d Lfj;d(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lahm;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_9791 Lnet/minecraft/class_2291;method_9791(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lnet/minecraft/class_5414;)Ljava/util/concurrent/CompletableFuture;
      named suggestAny Lnet/minecraft/command/argument/ItemStringReader;suggestAny(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lnet/minecraft/tag/TagGroup;)Ljava/util/concurrent/CompletableFuture;
    • getSuggestions

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