net.minecraft.commands.arguments.blocks

public class BlockStateParser

es
net.minecraft.commands.arguments.blocks.BlockStateParser
net.minecraft.class_2259
net.minecraft.unmapped.C_byxnvdet
net.minecraft.command.argument.BlockArgumentParser
net.minecraft.src.C_4426_
net.minecraft.commands.arguments.blocks.ArgumentBlock

Field summary

Modifier and TypeField
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
a
ERROR_NO_TAGS_ALLOWED
field_10691
f_vmupzakk
DISALLOWED_TAG_EXCEPTION
f_116741_
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
b
ERROR_UNKNOWN_BLOCK
field_10690
f_dnhrjtrg
INVALID_BLOCK_ID_EXCEPTION
f_116742_
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
c
ERROR_UNKNOWN_PROPERTY
field_10695
f_tydzifme
UNKNOWN_PROPERTY_EXCEPTION
f_116743_
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
d
ERROR_DUPLICATE_PROPERTY
field_10692
f_cvoqhxbz
DUPLICATE_PROPERTY_EXCEPTION
f_116744_
public static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType
e
ERROR_INVALID_VALUE
field_10683
f_labuxzvk
INVALID_PROPERTY_EXCEPTION
f_116745_
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
f
ERROR_EXPECTED_VALUE
field_10688
f_octvggph
EMPTY_PROPERTY_EXCEPTION
f_116746_
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
g
ERROR_EXPECTED_END_OF_PROPERTIES
field_10684
f_qovbljha
UNCLOSED_PROPERTIES_EXCEPTION
f_116747_
private static final char
h
SYNTAX_START_PROPERTIES
field_32800
f_hucgnvir
field_32800
f_174101_
private static final char
i
SYNTAX_START_NBT
field_32801
f_oggzvuey
field_32801
f_174102_
private static final char
j
SYNTAX_END_PROPERTIES
field_32802
f_dxmzxkbl
field_32802
f_174103_
private static final char
k
SYNTAX_EQUALS
field_32803
f_yxmqvjdm
field_32803
f_174104_
private static final char
l
SYNTAX_PROPERTY_SEPARATOR
field_32804
f_aepsuehd
field_32804
f_174105_
private static final char
m
SYNTAX_TAG
field_32805
f_xmojkqxl
field_32805
f_174106_
private static final BiFunction<com.mojang.brigadier.suggestion.SuggestionsBuilder, TagCollection<Block>, CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>>
n
SUGGEST_NOTHING
field_10682
f_frcmfegl
SUGGEST_DEFAULT
f_116748_
private final com.mojang.brigadier.StringReader
o
reader
field_10698
f_cpprinvq
reader
f_116749_
private final boolean
p
forTesting
field_10687
f_tecijenj
allowTag
f_116750_
private final Map<Property<?>, Comparable<?>>
q
properties
field_10699
f_yzbucctp
blockProperties
f_116751_
private final Map<String, String>
r
vagueProperties
field_10685
f_xddtavks
tagProperties
f_116752_
private ResourceLocation
s
id
field_10697
f_cjhjbswa
blockId
f_116753_
private StateDefinition<Block, BlockState>
t
definition
field_10689
f_unzoxsuu
stateFactory
f_116754_
private BlockState
u
state
field_10686
f_vlvuunuk
blockState
f_116755_
private CompoundTag
v
nbt
field_10693
f_kgowavap
data
f_116756_
private ResourceLocation
w
tag
field_10681
f_wpqdltcz
tagId
f_116757_
private int
x
tagCursor
field_10694
f_kqielfyp
cursorPos
f_116758_
private BiFunction<com.mojang.brigadier.suggestion.SuggestionsBuilder, TagCollection<Block>, CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>>
y
suggestions
field_10696
f_rgyqanti
suggestions
f_116759_

Constructor summary

ModifierConstructor
public (com.mojang.brigadier.StringReader reader, boolean allowTag)

Method summary

Modifier and TypeMethod
public Map<Property<?>, Comparable<?>>
a()
getProperties()
method_9692()
m_dlstjpnd()
getBlockProperties()
m_116764_()
getStateMap()
public BlockState
b()
getState()
method_9669()
m_kobunqqp()
getBlockState()
m_116808_()
getBlockData()
public CompoundTag
c()
getNbt()
method_9694()
m_vxrxnuan()
getNbtData()
m_116815_()
public ResourceLocation
d()
getTag()
method_9664()
m_crokfhgu()
getTagId()
m_116822_()
public BlockStateParser
a(boolean arg0)
parse(boolean arg0)
method_9678(boolean arg0)
m_arwtwfiw(boolean arg0)
parse(boolean allowNbt)
m_116806_(boolean arg0)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
b(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, agb<bzp> arg1)
suggestPropertyNameOrEnd(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, TagCollection<Block> arg1)
method_9671(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, class_5414<class_2248> arg1)
m_qpkdkbts(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, C_urufctfi<C_mmxmpdoq> arg1)
suggestBlockPropertiesOrEnd(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, TagGroup<Block> arg1)
m_116809_(com.mojang.brigadier.suggestion.SuggestionsBuilder p_116811_, C_157_<C_1706_> arg1)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
c(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, agb<bzp> arg1)
suggestVaguePropertyNameOrEnd(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, TagCollection<Block> arg1)
method_9674(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, class_5414<class_2248> arg1)
m_ngulfgen(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, C_urufctfi<C_mmxmpdoq> arg1)
suggestTagPropertiesOrEnd(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, TagGroup<Block> arg1)
m_116816_(com.mojang.brigadier.suggestion.SuggestionsBuilder p_116818_, C_157_<C_1706_> arg1)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
d(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, agb<bzp> arg1)
suggestPropertyName(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, TagCollection<Block> arg1)
method_9665(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, class_5414<class_2248> arg1)
m_ngpdcbjf(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, C_urufctfi<C_mmxmpdoq> arg1)
suggestBlockProperties(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, TagGroup<Block> arg1)
m_116823_(com.mojang.brigadier.suggestion.SuggestionsBuilder p_116825_, C_157_<C_1706_> arg1)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
e(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, agb<bzp> arg1)
suggestVaguePropertyName(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, TagCollection<Block> arg1)
method_9667(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, class_5414<class_2248> arg1)
m_oqehrwbe(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, C_urufctfi<C_mmxmpdoq> arg1)
suggestTagProperties(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, TagGroup<Block> arg1)
m_116827_(com.mojang.brigadier.suggestion.SuggestionsBuilder p_116829_, C_157_<C_1706_> arg1)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
f(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, agb<bzp> arg1)
suggestOpenNbt(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, TagCollection<Block> arg1)
method_9687(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, class_5414<class_2248> arg1)
m_nftrjbtm(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, C_urufctfi<C_mmxmpdoq> arg1)
suggestSnbt(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, TagGroup<Block> arg1)
m_116831_(com.mojang.brigadier.suggestion.SuggestionsBuilder p_116833_, C_157_<C_1706_> arg1)
private boolean
a(agb<bzp> arg0)
hasBlockEntity(TagCollection<Block> arg0)
method_9676(class_5414<class_2248> arg0)
m_dyhvhjit(C_urufctfi<C_mmxmpdoq> arg0)
hasBlockEntity(TagGroup<Block> arg0)
m_116767_(C_157_<C_1706_> arg0)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
g(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, agb<bzp> arg1)
suggestEquals(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, TagCollection<Block> arg1)
method_9693(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, class_5414<class_2248> arg1)
m_bhfnnfhg(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, C_urufctfi<C_mmxmpdoq> arg1)
suggestEqualsCharacter(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, TagGroup<Block> arg1)
m_116835_(com.mojang.brigadier.suggestion.SuggestionsBuilder p_116837_, C_157_<C_1706_> arg1)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
h(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, agb<bzp> arg1)
suggestNextPropertyOrEnd(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, TagCollection<Block> arg1)
method_9689(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, class_5414<class_2248> arg1)
m_iztvcqfg(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, C_urufctfi<C_mmxmpdoq> arg1)
suggestCommaOrEnd(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, TagGroup<Block> arg1)
m_116839_(com.mojang.brigadier.suggestion.SuggestionsBuilder p_116841_, C_157_<C_1706_> arg1)
private static <T extends Comparable<T>> com.mojang.brigadier.suggestion.SuggestionsBuilder
a(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, clw<T> arg1)
addSuggestions(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Property<T> arg1)
method_9662(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, class_2769<T> arg1)
m_qrwykyna(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, C_vzlztuyw<T> arg1)
suggestPropertyValues(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Property<T> arg1)
m_116786_(com.mojang.brigadier.suggestion.SuggestionsBuilder p_116787_, C_2097_<T> p_116788_)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
a(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, agb<bzp> arg1, String arg2)
suggestVaguePropertyValue(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, TagCollection<Block> arg1, String arg2)
method_9690(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, class_5414<class_2248> arg1, String arg2)
m_pwimgspe(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, C_urufctfi<C_mmxmpdoq> arg1, String arg2)
suggestTagPropertyValues(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, TagGroup<Block> arg1, String arg2)
m_116782_(com.mojang.brigadier.suggestion.SuggestionsBuilder p_116784_, C_157_<C_1706_> p_116785_, String arg2)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
i(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, agb<bzp> arg1)
suggestOpenVaguePropertiesOrNbt(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, TagCollection<Block> arg1)
method_9679(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, class_5414<class_2248> arg1)
m_fuzzmwbi(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, C_urufctfi<C_mmxmpdoq> arg1)
suggestSnbtOrTagProperties(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, TagGroup<Block> arg1)
m_116843_(com.mojang.brigadier.suggestion.SuggestionsBuilder p_116845_, C_157_<C_1706_> arg1)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
j(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, agb<bzp> arg1)
suggestOpenPropertiesOrNbt(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, TagCollection<Block> arg1)
method_9681(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, class_5414<class_2248> arg1)
m_eyfmgkbq(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, C_urufctfi<C_mmxmpdoq> arg1)
suggestSnbtOrBlockProperties(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, TagGroup<Block> arg1)
m_116847_(com.mojang.brigadier.suggestion.SuggestionsBuilder p_116849_, C_157_<C_1706_> arg1)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
k(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, agb<bzp> arg1)
suggestTag(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, TagCollection<Block> arg1)
method_9670(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, class_5414<class_2248> arg1)
m_mlcaqcva(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, C_urufctfi<C_mmxmpdoq> arg1)
suggestIdentifiers(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, TagGroup<Block> arg1)
m_116850_(com.mojang.brigadier.suggestion.SuggestionsBuilder p_116852_, C_157_<C_1706_> arg1)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
l(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, agb<bzp> arg1)
suggestBlockIdOrTag(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, TagCollection<Block> arg1)
method_9673(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, class_5414<class_2248> arg1)
m_hcyotcvk(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, C_urufctfi<C_mmxmpdoq> arg1)
suggestBlockOrTagId(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, TagGroup<Block> arg1)
m_116853_(com.mojang.brigadier.suggestion.SuggestionsBuilder p_116855_, C_157_<C_1706_> arg1)
public void
e()
readBlock()
method_9675()
m_fifmyvas()
parseBlockId()
m_116826_()
public void
f()
readTag()
method_9677()
m_bniujfgd()
parseTagId()
m_116830_()
public void
g()
readProperties()
method_9659()
m_uvwgetsl()
parseBlockProperties()
m_116834_()
public void
h()
readVagueProperties()
method_9680()
m_qgrihmzm()
parseTagProperties()
m_116838_()
public void
i()
readNbt()
method_9672()
m_xqczamak()
parseSnbt()
m_116842_()
private <T extends Comparable<T>> void
a(clw<T> arg0, String arg1, int arg2)
setValue(Property<T> arg0, String arg1, int arg2)
method_9668(class_2769<T> arg0, String arg1, int arg2)
m_mywhommc(C_vzlztuyw<T> arg0, String arg1, int arg2)
parsePropertyValue(Property<T> arg0, String arg1, int arg2)
m_116775_(C_2097_<T> p_116777_, String p_116778_, int arg2)
public static String
a(ckt arg0)
serialize(BlockState arg0)
method_9685(class_2680 arg0)
m_sznyfwfy(C_txtbiemp arg0)
stringifyBlockState(BlockState arg0)
m_116769_(C_2064_ p_116770_)
private static <T extends Comparable<T>> void
a(StringBuilder arg0, clw<T> arg1, Comparable<?> arg2)
appendProperty(StringBuilder arg0, Property<T> arg1, Comparable<?> arg2)
method_9663(StringBuilder arg0, class_2769<T> arg1, Comparable<?> arg2)
m_odbeqkxi(StringBuilder arg0, C_vzlztuyw<T> arg1, Comparable<?> arg2)
stringifyProperty(StringBuilder arg0, Property<T> arg1, Comparable<?> arg2)
m_116802_(StringBuilder p_116803_, C_2097_<T> p_116804_, Comparable<?> p_116805_)
public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
a(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, agb<bzp> arg1)
fillSuggestions(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, TagCollection<Block> arg1)
method_9666(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, class_5414<class_2248> arg1)
m_kzqobqcr(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, C_urufctfi<C_mmxmpdoq> arg1)
getSuggestions(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, TagGroup<Block> arg1)
m_116779_(com.mojang.brigadier.suggestion.SuggestionsBuilder p_116781_, C_157_<C_1706_> arg1)
public Map<String, String>
j()
getVagueProperties()
method_9688()
m_bxuqhpql()
getProperties()
m_116846_()