Class ItemParser
java.lang.Object
net.minecraft.commands.arguments.item.ItemParser
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private final boolean
private Item
private CompoundTag
private final com.mojang.brigadier.StringReader
private static final BiFunction<com.mojang.brigadier.suggestion.SuggestionsBuilder,
Registry<Item>, CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>> private BiFunction<com.mojang.brigadier.suggestion.SuggestionsBuilder,
Registry<Item>, CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>> private static final char
private static final char
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
fillSuggestions
(com.mojang.brigadier.suggestion.SuggestionsBuilder p_205666_, Registry<Item> p_205667_) getItem()
getNbt()
getTag()
parse()
void
readItem()
void
readNbt()
void
readTag()
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestItemIdOrTag
(com.mojang.brigadier.suggestion.SuggestionsBuilder p_205676_, Registry<Item> p_205677_) private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestOpenNbt
(com.mojang.brigadier.suggestion.SuggestionsBuilder p_205669_, Registry<Item> p_205670_) private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestTag
(com.mojang.brigadier.suggestion.SuggestionsBuilder p_205673_, Registry<Item> p_205674_)
-
Field Details
-
ERROR_NO_TAGS_ALLOWED
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NO_TAGS_ALLOWED -
ERROR_UNKNOWN_ITEM
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_ITEM -
SYNTAX_START_NBT
private static final char SYNTAX_START_NBT- See Also:
-
SYNTAX_TAG
private static final char SYNTAX_TAG- See Also:
-
SUGGEST_NOTHING
private static final BiFunction<com.mojang.brigadier.suggestion.SuggestionsBuilder,Registry<Item>, SUGGEST_NOTHINGCompletableFuture<com.mojang.brigadier.suggestion.Suggestions>> -
reader
private final com.mojang.brigadier.StringReader reader -
forTesting
private final boolean forTesting -
item
-
nbt
-
tag
-
tagCursor
private int tagCursor -
suggestions
private BiFunction<com.mojang.brigadier.suggestion.SuggestionsBuilder,Registry<Item>, suggestionsCompletableFuture<com.mojang.brigadier.suggestion.Suggestions>>
-
-
Constructor Details
-
ItemParser
public ItemParser(com.mojang.brigadier.StringReader p_121004_, boolean p_121005_)
-
-
Method Details
-
getItem
-
getNbt
-
getTag
-
readItem
public void readItem() throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readTag
public void readTag() throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readNbt
public void readNbt() throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
parse
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
suggestOpenNbt
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestOpenNbt(com.mojang.brigadier.suggestion.SuggestionsBuilder p_205669_, Registry<Item> p_205670_) -
suggestTag
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestTag(com.mojang.brigadier.suggestion.SuggestionsBuilder p_205673_, Registry<Item> p_205674_) -
suggestItemIdOrTag
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestItemIdOrTag(com.mojang.brigadier.suggestion.SuggestionsBuilder p_205676_, Registry<Item> p_205677_) -
fillSuggestions
public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> fillSuggestions(com.mojang.brigadier.suggestion.SuggestionsBuilder p_205666_, Registry<Item> p_205667_)
-