Package net.minecraft.command.argument
Class ItemStringReader
java.lang.Object
net.minecraft.command.argument.ItemStringReader
- Mappings:
Namespace Name official fi
intermediary net/minecraft/class_2291
named net/minecraft/command/argument/ItemStringReader
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private int
private static char
private static char
private Identifier
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private Item
private @Nullable NbtCompound
private static BiFunction<com.mojang.brigadier.suggestion.SuggestionsBuilder,TagGroup<Item>,CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>>
private com.mojang.brigadier.StringReader
private BiFunction<com.mojang.brigadier.suggestion.SuggestionsBuilder,TagGroup<Item>,CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>>
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
Constructor Summary
ConstructorDescriptionItemStringReader(com.mojang.brigadier.StringReader reader, boolean allowTag)
-
Method Summary
Modifier and TypeMethodDescriptionconsume()
getId()
getItem()
getNbt()
CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
getSuggestions(com.mojang.brigadier.suggestion.SuggestionsBuilder builder, TagGroup<Item> tagGroup)
void
readItem()
void
readNbt()
void
readTag()
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestAny(com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionsBuilder, TagGroup<Item> tagGroup)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestItem(com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionsBuilder, TagGroup<Item> tagGroup)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestTag(com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionsBuilder, TagGroup<Item> tagGroup)
-
Field Details
-
TAG_DISALLOWED_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType TAG_DISALLOWED_EXCEPTION- Mappings:
Namespace Name Mixin selector official a
Lfi;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
Lfi;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;
-
field_33066
private static final char field_33066- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official c
Lfi;c:C
intermediary field_33066
Lnet/minecraft/class_2291;field_33066:C
named field_33066
Lnet/minecraft/command/argument/ItemStringReader;field_33066:C
-
field_33067
private static final char field_33067- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official d
Lfi;d:C
intermediary field_33067
Lnet/minecraft/class_2291;field_33067:C
named field_33067
Lnet/minecraft/command/argument/ItemStringReader;field_33067: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
Lfi;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
Lfi;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
Lfi;g:Z
intermediary field_10804
Lnet/minecraft/class_2291;field_10804:Z
named allowTag
Lnet/minecraft/command/argument/ItemStringReader;allowTag:Z
-
item
- Mappings:
Namespace Name Mixin selector official h
Lfi;h:Lbql;
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
Lfi;i:Lna;
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
Lfi;j:Lww;
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
Lfi;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
Lfi;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>
Lfi;<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
- Mappings:
Namespace Name Mixin selector official a
Lfi;a()Lbql;
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
- Mappings:
Namespace Name Mixin selector official b
Lfi;b()Lna;
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
- Mappings:
Namespace Name Mixin selector official c
Lfi;c()Lww;
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
Lfi;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
Lfi;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
Lfi;f()V
intermediary method_9788
Lnet/minecraft/class_2291;method_9788()V
named readNbt
Lnet/minecraft/command/argument/ItemStringReader;readNbt()V
-
consume
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official g
Lfi;g()Lfi;
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
Lfi;b(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lagb;)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
Lfi;c(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lagb;)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
Lfi;d(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lagb;)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
Lfi;a(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lagb;)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;
-