net.minecraft.commands.arguments.item

public class ItemParser

fw
net.minecraft.commands.arguments.item.ItemParser
net.minecraft.class_2291
net.minecraft.unmapped.C_aggscjva
net.minecraft.command.argument.ItemStringReader
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
f_mtuhuqda
TAG_DISALLOWED_EXCEPTION
TAG_DISALLOWED_EXCEPTION
f_120991_
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
b
ERROR_UNKNOWN_ITEM
field_10799
f_fwzjhzyb
ID_INVALID_EXCEPTION
ID_INVALID_EXCEPTION
f_120992_
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
c
ERROR_UNKNOWN_TAG
field_37971
f_uyesugtr
UNKNOWN_TAG_EXCEPTION
UNKNOWN_TAG_EXCEPTION
f_235286_
private static final char
d
SYNTAX_START_NBT
field_33066
f_nhjeovde
LEFT_CURLY_BRACKET
LEFT_CURLY_BRACKET
f_175091_
private static final char
e
SYNTAX_TAG
field_33067
f_wmpcwecy
HASH_SIGN
HASH_SIGN
f_175092_
private static final Function<com.mojang.brigadier.suggestion.SuggestionsBuilder, CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>>
f
SUGGEST_NOTHING
field_10806
f_hxfugzgd
NBT_SUGGESTION_PROVIDER
NBT_SUGGESTION_PROVIDER
f_120993_
private final HolderLookup<Item>
g
items
field_37972
f_qmjmakhc
registryWrapper
items
f_235287_
private final com.mojang.brigadier.StringReader
h
reader
field_10802
f_vcqhzezg
reader
reader
f_120994_
private final boolean
i
allowTags
field_10804
f_vsudypqk
allowTag
allowTags
f_235288_
private com.mojang.datafixers.util.Either<Holder<Item>, HolderSet<Item>>
j
result
field_37973
f_tdveyqwj
result
result
f_235289_
private CompoundTag
k
nbt
field_10807
f_uvxmhrao
nbt
nbt
f_120998_
private Function<com.mojang.brigadier.suggestion.SuggestionsBuilder, CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>>
l
suggestions
field_10805
f_eanmignc
suggestions
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(hg<cfu> 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)
m_koanxfku(C_vtbxyypo<C_vorddnax> arg0, com.mojang.brigadier.StringReader arg1)
item(RegistryWrapper<Item> registryWrapper, com.mojang.brigadier.StringReader reader)
parseForItem(HolderLookup<Item> items, 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(hg<cfu> 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)
m_jgvdgnci(C_vtbxyypo<C_vorddnax> arg0, com.mojang.brigadier.StringReader arg1)
itemOrTag(RegistryWrapper<Item> registryWrapper, com.mojang.brigadier.StringReader reader)
parseForTesting(HolderLookup<Item> items, 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(hg<cfu> 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)
m_seifydji(C_vtbxyypo<C_vorddnax> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1, boolean arg2)
getSuggestions(RegistryWrapper<Item> registryWrapper, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, boolean allowTag)
getSuggestions(HolderLookup<Item> items, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, boolean allowTags)
m_235308_(C_213466_<C_1381_> p_235309_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_235310_, boolean p_235311_)
private void
a()
readItem()
method_9795()
m_lryorlry()
readItem()
readItem()
m_121026_()
private void
b()
readTag()
method_9787()
m_ygxjfoak()
readTag()
readTag()
m_121030_()
private void
c()
readNbt()
method_9788()
m_roenujng()
readNbt()
readNbt()
m_121031_()
private void
d()
parse()
method_9789()
m_xboesavj()
consume()
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)
m_lgepeugi(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestItem(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
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)
m_cmbjfufc(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestTag(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
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)
m_vnduoitn(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestItemId(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
suggestItems(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)
m_vltzzlbs(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestItemOrTagId(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
suggestAny(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
m_235325_(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)