Class ItemStringReader

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

public class ItemStringReader
extends Object
Mappings:
Namespace Name
official ey
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 Ley;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 Ley;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;
    • 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 c Ley;c: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 d Ley;d: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 e Ley;e: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 f Ley;f:Lbnr;
      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;
    • tag

      @Nullable private CompoundTag tag
      Mappings:
      Namespace Name Mixin selector
      official g Ley;g:Lmq;
      intermediary field_10807 Lnet/minecraft/class_2291;field_10807:Lnet/minecraft/class_2487;
      named tag Lnet/minecraft/command/argument/ItemStringReader;tag:Lnet/minecraft/nbt/CompoundTag;
    • id

      private Identifier id
      Mappings:
      Namespace Name Mixin selector
      official h Ley;h:Lwb;
      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 i Ley;i: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 j Ley;j: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> Ley;<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 Ley;a()Lbnr;
      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;
    • getTag

      @Nullable public CompoundTag getTag()
      Mappings:
      Namespace Name Mixin selector
      official b Ley;b()Lmq;
      intermediary method_9797 Lnet/minecraft/class_2291;method_9797()Lnet/minecraft/class_2487;
      named getTag Lnet/minecraft/command/argument/ItemStringReader;getTag()Lnet/minecraft/nbt/CompoundTag;
    • getId

      public Identifier getId()
      Mappings:
      Namespace Name Mixin selector
      official c Ley;c()Lwb;
      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 Ley;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 Ley;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 Ley;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 Ley;g()Ley;
      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 suggestionsBuilder, TagGroup<Item> tagGroup)
      Mappings:
      Namespace Name Mixin selector
      official b Ley;b(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lafd;)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 suggestionsBuilder, TagGroup<Item> tagGroup)
      Mappings:
      Namespace Name Mixin selector
      official c Ley;c(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lafd;)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 suggestionsBuilder, TagGroup<Item> tagGroup)
      Mappings:
      Namespace Name Mixin selector
      official d Ley;d(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lafd;)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> tagGroup)
      Mappings:
      Namespace Name Mixin selector
      official a Ley;a(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lafd;)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;