Package net.minecraft.command.argument
Class ItemStringReader
java.lang.Object
net.minecraft.command.argument.ItemStringReader
- Mappings:
Namespace Name official fw
intermediary net/minecraft/class_2291
named net/minecraft/command/argument/ItemStringReader
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private static final char
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final char
private @Nullable NbtCompound
private static final Function<com.mojang.brigadier.suggestion.SuggestionsBuilder,
CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>> private final com.mojang.brigadier.StringReader
private final RegistryWrapper<Item>
private com.mojang.datafixers.util.Either<RegistryEntry<Item>,
RegistryEntryList<Item>> private Function<com.mojang.brigadier.suggestion.SuggestionsBuilder,
CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>> private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
-
Constructor Summary
ModifierConstructorDescriptionprivate
ItemStringReader
(RegistryWrapper<Item> registryWrapper, com.mojang.brigadier.StringReader reader, boolean allowTag) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
consume()
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
getSuggestions
(RegistryWrapper<Item> registryWrapper, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, boolean allowTag) static ItemStringReader.ItemResult
item
(RegistryWrapper<Item> registryWrapper, com.mojang.brigadier.StringReader reader) static com.mojang.datafixers.util.Either<ItemStringReader.ItemResult,
ItemStringReader.TagResult> itemOrTag
(RegistryWrapper<Item> registryWrapper, com.mojang.brigadier.StringReader reader) private void
readItem()
private void
readNbt()
private void
readTag()
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestItem
(com.mojang.brigadier.suggestion.SuggestionsBuilder builder) private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestItemId
(com.mojang.brigadier.suggestion.SuggestionsBuilder builder) private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestItemOrTagId
(com.mojang.brigadier.suggestion.SuggestionsBuilder builder) private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestTag
(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
-
Field Details
-
TAG_DISALLOWED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType TAG_DISALLOWED_EXCEPTION- Mappings:
Namespace Name Mixin selector official a
Lfw;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
Lfw;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
Lfw;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
Lfw;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
Lfw;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
Lfw;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
- Mappings:
Namespace Name Mixin selector official g
Lfw;g:Lhg;
intermediary field_37972
Lnet/minecraft/class_2291;field_37972:Lnet/minecraft/class_7225;
named registryWrapper
Lnet/minecraft/command/argument/ItemStringReader;registryWrapper:Lnet/minecraft/registry/RegistryWrapper;
-
reader
private final com.mojang.brigadier.StringReader reader- Mappings:
Namespace Name Mixin selector official h
Lfw;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
Lfw;i:Z
intermediary field_10804
Lnet/minecraft/class_2291;field_10804:Z
named allowTag
Lnet/minecraft/command/argument/ItemStringReader;allowTag:Z
-
result
- Mappings:
Namespace Name Mixin selector official j
Lfw;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
Lfw;k:Lqr;
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
Lfw;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(RegistryWrapper<Item> registryWrapper, com.mojang.brigadier.StringReader reader, boolean allowTag) - Mappings:
Namespace Name Mixin selector official <init>
Lfw;<init>(Lhg;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/registry/RegistryWrapper;Lcom/mojang/brigadier/StringReader;Z)V
-
-
Method Details
-
item
public static ItemStringReader.ItemResult item(RegistryWrapper<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
Lfw;a(Lhg;Lcom/mojang/brigadier/StringReader;)Lfw$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/registry/RegistryWrapper;Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/ItemStringReader$ItemResult;
-
itemOrTag
public static com.mojang.datafixers.util.Either<ItemStringReader.ItemResult,ItemStringReader.TagResult> itemOrTag(RegistryWrapper<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
Lfw;b(Lhg;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/registry/RegistryWrapper;Lcom/mojang/brigadier/StringReader;)Lcom/mojang/datafixers/util/Either;
-
getSuggestions
public static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> getSuggestions(RegistryWrapper<Item> registryWrapper, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, boolean allowTag) - Mappings:
Namespace Name Mixin selector official a
Lfw;a(Lhg;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/registry/RegistryWrapper;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
Lfw;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
Lfw;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
Lfw;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
Lfw;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
Lfw;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
Lfw;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
Lfw;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
Lfw;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;
-