Class ItemStringReader

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

public class ItemStringReader extends Object
Mappings:
Namespace Name
official fl
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 Lfl;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 Lfl;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 Lfl;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 Lfl;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,Registry<Item>,CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>> NBT_SUGGESTION_PROVIDER
      Mappings:
      Namespace Name Mixin selector
      official e Lfl;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 Lfl;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 Lfl;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 Lfl;h:Lbus;
      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 Lfl;i:Lok;
      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

      Mappings:
      Namespace Name Mixin selector
      official j Lfl;j:Laif;
      intermediary field_10808 Lnet/minecraft/class_2291;field_10808:Lnet/minecraft/class_6862;
      named id Lnet/minecraft/command/argument/ItemStringReader;id:Lnet/minecraft/tag/TagKey;
    • cursor

      private int cursor
      Mappings:
      Namespace Name Mixin selector
      official k Lfl;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,Registry<Item>,CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>> suggestions
      Mappings:
      Namespace Name Mixin selector
      official l Lfl;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> Lfl;<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 Lfl;a()Lbus;
      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 Lfl;b()Lok;
      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 TagKey<Item> getId()
      Mappings:
      Namespace Name Mixin selector
      official c Lfl;c()Laif;
      intermediary method_9790 Lnet/minecraft/class_2291;method_9790()Lnet/minecraft/class_6862;
      named getId Lnet/minecraft/command/argument/ItemStringReader;getId()Lnet/minecraft/tag/TagKey;
    • readItem

      public void readItem() throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official d Lfl;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 Lfl;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 Lfl;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 Lfl;g()Lfl;
      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, Registry<Item> registry)
      Mappings:
      Namespace Name Mixin selector
      official b Lfl;b(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lhb;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_9794 Lnet/minecraft/class_2291;method_9794(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lnet/minecraft/class_2378;)Ljava/util/concurrent/CompletableFuture;
      named suggestItem Lnet/minecraft/command/argument/ItemStringReader;suggestItem(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lnet/minecraft/util/registry/Registry;)Ljava/util/concurrent/CompletableFuture;
    • suggestTag

      private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestTag(com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Registry<Item> registry)
      Mappings:
      Namespace Name Mixin selector
      official c Lfl;c(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lhb;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_9796 Lnet/minecraft/class_2291;method_9796(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lnet/minecraft/class_2378;)Ljava/util/concurrent/CompletableFuture;
      named suggestTag Lnet/minecraft/command/argument/ItemStringReader;suggestTag(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lnet/minecraft/util/registry/Registry;)Ljava/util/concurrent/CompletableFuture;
    • suggestAny

      private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestAny(com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Registry<Item> registry)
      Mappings:
      Namespace Name Mixin selector
      official d Lfl;d(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lhb;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_9791 Lnet/minecraft/class_2291;method_9791(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lnet/minecraft/class_2378;)Ljava/util/concurrent/CompletableFuture;
      named suggestAny Lnet/minecraft/command/argument/ItemStringReader;suggestAny(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lnet/minecraft/util/registry/Registry;)Ljava/util/concurrent/CompletableFuture;
    • getSuggestions

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