net.minecraft.commands.arguments.item

public class ItemParser

fv
net.minecraft.commands.arguments.item.ItemParser
net.minecraft.class_2291
net.minecraft.command.argument.ItemStringReader
net.minecraft.src.C_4644_
net.minecraft.commands.arguments.item.ArgumentParserItemStack

Field summary

Modifier and TypeField
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
a
ERROR_NO_TAGS_ALLOWED
field_10800
TAG_DISALLOWED_EXCEPTION
f_120991_
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
b
ERROR_UNKNOWN_ITEM
field_10799
ID_INVALID_EXCEPTION
f_120992_
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
c
ERROR_UNKNOWN_TAG
field_37971
UNKNOWN_TAG_EXCEPTION
f_235286_
private static final char
d
SYNTAX_START_NBT
field_33066
LEFT_CURLY_BRACKET
f_175091_
private static final char
e
SYNTAX_TAG
field_33067
HASH_SIGN
f_175092_
private static final Function<com.mojang.brigadier.suggestion.SuggestionsBuilder, CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>>
f
SUGGEST_NOTHING
field_10806
NBT_SUGGESTION_PROVIDER
f_120993_
private final HolderLookup<Item>
g
items
field_37972
registryWrapper
f_235287_
private final com.mojang.brigadier.StringReader
h
reader
field_10802
reader
f_120994_
private final boolean
i
allowTags
field_10804
allowTag
f_235288_
private com.mojang.datafixers.util.Either<Holder<Item>, HolderSet<Item>>
j
result
field_37973
result
f_235289_
private CompoundTag
k
nbt
field_10807
nbt
f_120998_
private Function<com.mojang.brigadier.suggestion.SuggestionsBuilder, CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>>
l
suggestions
field_10805
suggestions
f_121001_

Constructor summary

ModifierConstructor
private (HolderLookup<Item> registryWrapper, com.mojang.brigadier.StringReader reader, boolean allowTag)

Method summary

Modifier and TypeMethod
public static ItemParser$ItemResult
a(hd<cat> arg0, com.mojang.brigadier.StringReader arg1)
parseForItem(HolderLookup<Item> arg0, com.mojang.brigadier.StringReader arg1)
method_41972(class_7225<class_1792> arg0, com.mojang.brigadier.StringReader arg1)
item(CommandRegistryWrapper<Item> registryWrapper, com.mojang.brigadier.StringReader reader)
m_235305_(C_213466_<C_1381_> p_235306_, com.mojang.brigadier.StringReader p_235307_)
public static com.mojang.datafixers.util.Either<ItemParser$ItemResult, ItemParser$TagResult>
b(hd<cat> arg0, com.mojang.brigadier.StringReader arg1)
parseForTesting(HolderLookup<Item> arg0, com.mojang.brigadier.StringReader arg1)
method_41974(class_7225<class_1792> arg0, com.mojang.brigadier.StringReader arg1)
itemOrTag(CommandRegistryWrapper<Item> registryWrapper, com.mojang.brigadier.StringReader reader)
m_235319_(C_213466_<C_1381_> p_235320_, com.mojang.brigadier.StringReader p_235321_)
public static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
a(hd<cat> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1, boolean arg2)
fillSuggestions(HolderLookup<Item> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1, boolean arg2)
method_9793(class_7225<class_1792> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1, boolean arg2)
getSuggestions(CommandRegistryWrapper<Item> registryWrapper, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, boolean allowTag)
m_235308_(C_213466_<C_1381_> p_235309_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_235310_, boolean p_235311_)
private void
a()
readItem()
method_9795()
readItem()
m_121026_()
private void
b()
readTag()
method_9787()
readTag()
m_121030_()
private void
c()
readNbt()
method_9788()
readNbt()
m_121031_()
private void
d()
parse()
method_9789()
consume()
m_235324_()
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
a(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestOpenNbt(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
method_9794(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestItem(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
m_235297_(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
b(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestTag(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
method_9796(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestTag(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
m_235317_(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
c(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestItem(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
method_41975(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestItemId(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
m_235322_(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
d(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestItemIdOrTag(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
method_9791(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestItemOrTagId(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
m_235325_(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)