Class ItemStringReader

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

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

    • TAG_DISALLOWED_EXCEPTION

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType TAG_DISALLOWED_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official a Lfv;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

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ID_INVALID_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official b Lfv;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;
    • UNKNOWN_TAG_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_TAG_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official c Lfv;c:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_37971 Lnet/minecraft/class_2291;field_37971:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      named UNKNOWN_TAG_EXCEPTION Lnet/minecraft/command/argument/ItemStringReader;UNKNOWN_TAG_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • LEFT_CURLY_BRACKET

      private static final char LEFT_CURLY_BRACKET
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lfv;d: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 e Lfv;e: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 Function<com.mojang.brigadier.suggestion.SuggestionsBuilder,CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>> NBT_SUGGESTION_PROVIDER
      Mappings:
      Namespace Name Mixin selector
      official f Lfv;f:Ljava/util/function/Function;
      intermediary field_10806 Lnet/minecraft/class_2291;field_10806:Ljava/util/function/Function;
      named NBT_SUGGESTION_PROVIDER Lnet/minecraft/command/argument/ItemStringReader;NBT_SUGGESTION_PROVIDER:Ljava/util/function/Function;
    • registryWrapper

      private final CommandRegistryWrapper<Item> registryWrapper
      Mappings:
      Namespace Name Mixin selector
      official g Lfv;g:Lhd;
      intermediary field_37972 Lnet/minecraft/class_2291;field_37972:Lnet/minecraft/class_7225;
      named registryWrapper Lnet/minecraft/command/argument/ItemStringReader;registryWrapper:Lnet/minecraft/command/CommandRegistryWrapper;
    • reader

      private final com.mojang.brigadier.StringReader reader
      Mappings:
      Namespace Name Mixin selector
      official h Lfv;h: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 i Lfv;i:Z
      intermediary field_10804 Lnet/minecraft/class_2291;field_10804:Z
      named allowTag Lnet/minecraft/command/argument/ItemStringReader;allowTag:Z
    • result

      private com.mojang.datafixers.util.Either<RegistryEntry<Item>,RegistryEntryList<Item>> result
      Mappings:
      Namespace Name Mixin selector
      official j Lfv;j:Lcom/mojang/datafixers/util/Either;
      intermediary field_37973 Lnet/minecraft/class_2291;field_37973:Lcom/mojang/datafixers/util/Either;
      named result Lnet/minecraft/command/argument/ItemStringReader;result:Lcom/mojang/datafixers/util/Either;
    • nbt

      Mappings:
      Namespace Name Mixin selector
      official k Lfv;k:Lpj;
      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;
    • suggestions

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

    • ItemStringReader

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

    • item

      public static ItemStringReader.ItemResult item(CommandRegistryWrapper<Item> registryWrapper, com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lfv;a(Lhd;Lcom/mojang/brigadier/StringReader;)Lfv$a;
      intermediary method_41972 Lnet/minecraft/class_2291;method_41972(Lnet/minecraft/class_7225;Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2291$class_7215;
      named item Lnet/minecraft/command/argument/ItemStringReader;item(Lnet/minecraft/command/CommandRegistryWrapper;Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/ItemStringReader$ItemResult;
    • itemOrTag

      public static com.mojang.datafixers.util.Either<ItemStringReader.ItemResult,ItemStringReader.TagResult> itemOrTag(CommandRegistryWrapper<Item> registryWrapper, com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official b Lfv;b(Lhd;Lcom/mojang/brigadier/StringReader;)Lcom/mojang/datafixers/util/Either;
      intermediary method_41974 Lnet/minecraft/class_2291;method_41974(Lnet/minecraft/class_7225;Lcom/mojang/brigadier/StringReader;)Lcom/mojang/datafixers/util/Either;
      named itemOrTag Lnet/minecraft/command/argument/ItemStringReader;itemOrTag(Lnet/minecraft/command/CommandRegistryWrapper;Lcom/mojang/brigadier/StringReader;)Lcom/mojang/datafixers/util/Either;
    • getSuggestions

      public static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> getSuggestions(CommandRegistryWrapper<Item> registryWrapper, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, boolean allowTag)
      Mappings:
      Namespace Name Mixin selector
      official a Lfv;a(Lhd;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Z)Ljava/util/concurrent/CompletableFuture;
      intermediary method_9793 Lnet/minecraft/class_2291;method_9793(Lnet/minecraft/class_7225;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Z)Ljava/util/concurrent/CompletableFuture;
      named getSuggestions Lnet/minecraft/command/argument/ItemStringReader;getSuggestions(Lnet/minecraft/command/CommandRegistryWrapper;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Z)Ljava/util/concurrent/CompletableFuture;
    • readItem

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

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

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

      private void consume() throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official d Lfv;d()V
      intermediary method_9789 Lnet/minecraft/class_2291;method_9789()V
      named consume Lnet/minecraft/command/argument/ItemStringReader;consume()V
    • suggestItem

      private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestItem(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
      Mappings:
      Namespace Name Mixin selector
      official a Lfv;a(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_9794 Lnet/minecraft/class_2291;method_9794(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      named suggestItem Lnet/minecraft/command/argument/ItemStringReader;suggestItem(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
    • suggestTag

      private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestTag(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
      Mappings:
      Namespace Name Mixin selector
      official b Lfv;b(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_9796 Lnet/minecraft/class_2291;method_9796(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      named suggestTag Lnet/minecraft/command/argument/ItemStringReader;suggestTag(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
    • suggestItemId

      private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestItemId(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
      Mappings:
      Namespace Name Mixin selector
      official c Lfv;c(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_41975 Lnet/minecraft/class_2291;method_41975(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      named suggestItemId Lnet/minecraft/command/argument/ItemStringReader;suggestItemId(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
    • suggestItemOrTagId

      private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestItemOrTagId(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
      Mappings:
      Namespace Name Mixin selector
      official d Lfv;d(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_9791 Lnet/minecraft/class_2291;method_9791(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      named suggestItemOrTagId Lnet/minecraft/command/argument/ItemStringReader;suggestItemOrTagId(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;