net.minecraft.commands.arguments.blocks

public class BlockStateParser

gq
net.minecraft.commands.arguments.blocks.BlockStateParser
net.minecraft.class_2259
net.minecraft.unmapped.C_byxnvdet
net.minecraft.command.argument.BlockArgumentParser
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
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
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
UNKNOWN_PROPERTY_EXCEPTION
f_116743_
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
d
ERROR_DUPLICATE_PROPERTY
field_10692
f_cvoqhxbz
DUPLICATE_PROPERTY_EXCEPTION
DUPLICATE_PROPERTY_EXCEPTION
f_116744_
public static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType
e
ERROR_INVALID_VALUE
field_10683
f_labuxzvk
INVALID_PROPERTY_EXCEPTION
INVALID_PROPERTY_EXCEPTION
f_116745_
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
f
ERROR_EXPECTED_VALUE
field_10688
f_octvggph
EMPTY_PROPERTY_EXCEPTION
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
UNCLOSED_PROPERTIES_EXCEPTION
f_116747_
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
h
ERROR_UNKNOWN_TAG
field_37965
f_qcqiwnvh
UNKNOWN_BLOCK_TAG_EXCEPTION
UNKNOWN_TAG_EXCEPTION
f_234669_
private static final char
i
SYNTAX_START_PROPERTIES
field_32800
f_hucgnvir
PROPERTIES_OPENING
PROPERTIES_OPENING
f_174101_
private static final char
j
SYNTAX_START_NBT
field_32801
f_oggzvuey
NBT_OPENING
NBT_OPENING
f_174102_
private static final char
k
SYNTAX_END_PROPERTIES
field_32802
f_dxmzxkbl
PROPERTIES_CLOSING
PROPERTIES_CLOSING
f_174103_
private static final char
l
SYNTAX_EQUALS
field_32803
f_yxmqvjdm
PROPERTY_DEFINER
PROPERTY_DEFINER
f_174104_
private static final char
m
SYNTAX_PROPERTY_SEPARATOR
field_32804
f_aepsuehd
PROPERTY_SEPARATOR
PROPERTY_SEPARATOR
f_174105_
private static final char
n
SYNTAX_TAG
field_32805
f_xmojkqxl
TAG_PREFIX
TAG_PREFIX
f_174106_
private static final Function<com.mojang.brigadier.suggestion.SuggestionsBuilder, CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>>
o
SUGGEST_NOTHING
field_10682
f_frcmfegl
SUGGEST_DEFAULT
SUGGEST_DEFAULT
f_116748_
private final HolderLookup<Block>
p
blocks
field_37966
f_fqqwxkcy
registryWrapper
blocks
f_234670_
private final com.mojang.brigadier.StringReader
q
reader
field_10698
f_cpprinvq
reader
reader
f_116749_
private final boolean
r
forTesting
field_10687
f_tecijenj
allowTag
allowTag
f_116750_
private final boolean
s
allowNbt
field_37967
f_nxipzgze
allowSnbt
allowNbt
f_234671_
private final Map<Property<?>, Comparable<?>>
t
properties
field_10699
f_yzbucctp
blockProperties
blockProperties
f_116751_
private final Map<String, String>
u
vagueProperties
field_10685
f_xddtavks
tagProperties
tagProperties
f_116752_
private ResourceLocation
v
id
field_10697
f_cjhjbswa
blockId
blockId
f_116753_
private StateDefinition<Block, BlockState>
w
definition
field_10689
f_unzoxsuu
stateFactory
stateFactory
f_116754_
private BlockState
x
state
field_10686
f_vlvuunuk
blockState
blockState
f_116755_
private CompoundTag
y
nbt
field_10693
f_kgowavap
data
data
f_116756_
private HolderSet<Block>
z
tag
field_10681
f_wpqdltcz
tagId
tagId
f_116757_
private Function<com.mojang.brigadier.suggestion.SuggestionsBuilder, CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>>
A
suggestions
field_10696
f_rgyqanti
suggestions
suggestions
f_116759_

Constructor summary

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

Method summary

Modifier and TypeMethod
public static BlockStateParser$BlockResult
a(js<dkl> arg0, String arg1, boolean arg2)
parseForBlock(HolderLookup<Block> arg0, String arg1, boolean arg2)
method_41957(class_7225<class_2248> arg0, String arg1, boolean arg2)
m_towvdtyx(C_vtbxyypo<C_mmxmpdoq> arg0, String arg1, boolean arg2)
block(RegistryWrapper<Block> registryWrapper, String string, boolean allowSnbt)
parseForBlock(HolderLookup<Block> block, String argument, boolean allowNbt)
m_245437_(C_213466_<C_1706_> p_251394_, String p_248677_, boolean p_250430_)
public static BlockStateParser$BlockResult
a(js<dkl> arg0, com.mojang.brigadier.StringReader arg1, boolean arg2)
parseForBlock(HolderLookup<Block> arg0, com.mojang.brigadier.StringReader arg1, boolean arg2)
method_41955(class_7225<class_2248> arg0, com.mojang.brigadier.StringReader arg1, boolean arg2)
m_yryppqzg(C_vtbxyypo<C_mmxmpdoq> arg0, com.mojang.brigadier.StringReader arg1, boolean arg2)
block(RegistryWrapper<Block> registryWrapper, com.mojang.brigadier.StringReader reader, boolean allowSnbt)
parseForBlock(HolderLookup<Block> blocks, com.mojang.brigadier.StringReader reader, boolean allowNbt)
m_234691_(C_213466_<C_1706_> p_234692_, com.mojang.brigadier.StringReader p_234693_, boolean p_234694_)
public static com.mojang.datafixers.util.Either<BlockStateParser$BlockResult, BlockStateParser$TagResult>
b(js<dkl> arg0, String arg1, boolean arg2)
parseForTesting(HolderLookup<Block> arg0, String arg1, boolean arg2)
method_41962(class_7225<class_2248> arg0, String arg1, boolean arg2)
m_fhyumhdn(C_vtbxyypo<C_mmxmpdoq> arg0, String arg1, boolean arg2)
blockOrTag(RegistryWrapper<Block> registryWrapper, String string, boolean allowSnbt)
parseForTesting(HolderLookup<Block> block, String argument, boolean allowNbt)
m_247724_(C_213466_<C_1706_> p_252082_, String p_251830_, boolean p_249125_)
public static com.mojang.datafixers.util.Either<BlockStateParser$BlockResult, BlockStateParser$TagResult>
b(js<dkl> arg0, com.mojang.brigadier.StringReader arg1, boolean arg2)
parseForTesting(HolderLookup<Block> arg0, com.mojang.brigadier.StringReader arg1, boolean arg2)
method_41960(class_7225<class_2248> arg0, com.mojang.brigadier.StringReader arg1, boolean arg2)
m_khvkcowm(C_vtbxyypo<C_mmxmpdoq> arg0, com.mojang.brigadier.StringReader arg1, boolean arg2)
blockOrTag(RegistryWrapper<Block> registryWrapper, com.mojang.brigadier.StringReader reader, boolean allowSnbt)
parseForTesting(HolderLookup<Block> blocks, com.mojang.brigadier.StringReader reader, boolean allowNbt)
m_234716_(C_213466_<C_1706_> p_234717_, com.mojang.brigadier.StringReader p_234718_, boolean p_234719_)
public static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
a(js<dkl> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1, boolean arg2, boolean arg3)
fillSuggestions(HolderLookup<Block> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1, boolean arg2, boolean arg3)
method_9666(class_7225<class_2248> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1, boolean arg2, boolean arg3)
m_kzqobqcr(C_vtbxyypo<C_mmxmpdoq> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1, boolean arg2, boolean arg3)
getSuggestions(RegistryWrapper<Block> registryWrapper, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, boolean allowTag, boolean allowSnbt)
getSuggestions(HolderLookup<Block> blocks, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, boolean allowTag, boolean allowNbt)
m_234695_(C_213466_<C_1706_> p_234696_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_234697_, boolean p_234698_, boolean p_234699_)
private void
a()
parse()
method_9678()
m_arwtwfiw()
parse()
parse()
m_234677_()
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
a(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestPropertyNameOrEnd(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
method_9671(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
m_qpkdkbts(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestBlockPropertiesOrEnd(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
suggestBlockPropertiesOrEnd(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
m_234683_(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
b(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestVaguePropertyNameOrEnd(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
method_9674(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
m_ngulfgen(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestTagPropertiesOrEnd(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
suggestTagPropertiesOrEnd(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
m_234714_(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
c(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestPropertyName(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
method_9665(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
m_ngpdcbjf(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestBlockProperties(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
suggestBlockProperties(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
m_234728_(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
d(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestVaguePropertyName(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
method_9667(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
m_oqehrwbe(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestTagProperties(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
suggestTagProperties(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
m_234730_(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
e(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestOpenNbt(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
method_9687(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
m_nftrjbtm(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestSnbt(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
suggestSnbt(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
m_234732_(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
private boolean
b()
hasBlockEntity()
method_9676()
m_dyhvhjit()
hasBlockEntity()
hasBlockEntity()
m_234713_()
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
f(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestEquals(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
method_9693(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
m_bhfnnfhg(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestEqualsCharacter(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
suggestEqualsCharacter(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
m_234734_(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
g(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestNextPropertyOrEnd(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
method_9689(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
m_iztvcqfg(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestCommaOrEnd(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
suggestCommaOrEnd(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
m_234736_(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
private static <T extends Comparable<T>> com.mojang.brigadier.suggestion.SuggestionsBuilder
a(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, dyw<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 builder, Property<T> property)
suggestPropertyValues(com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Property<T> property)
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, String arg1)
suggestVaguePropertyValue(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, String arg1)
method_9690(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, String arg1)
m_pwimgspe(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, String arg1)
suggestTagPropertyValues(com.mojang.brigadier.suggestion.SuggestionsBuilder builder, String name)
suggestTagPropertyValues(com.mojang.brigadier.suggestion.SuggestionsBuilder builder, String property)
m_234685_(com.mojang.brigadier.suggestion.SuggestionsBuilder p_234687_, String arg1)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
h(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestOpenVaguePropertiesOrNbt(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
method_9679(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
m_fuzzmwbi(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestSnbtOrTagProperties(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
suggestSnbtOrTagProperties(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
m_234738_(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
i(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestOpenPropertiesOrNbt(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
method_9681(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
m_eyfmgkbq(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestSnbtOrBlockProperties(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
suggestSnbtOrBlockProperties(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
m_234740_(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
j(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestTag(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
method_9670(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
m_mlcaqcva(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestIdentifiers(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
suggestIdentifiers(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
m_234742_(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
k(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestItem(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
method_41963(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
m_twdbqqyh(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestBlockId(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
suggestItem(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
m_234744_(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
l(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestBlockIdOrTag(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
method_9673(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
m_hcyotcvk(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestBlockOrTagId(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
suggestBlockOrTagId(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
m_234746_(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
private void
c()
readBlock()
method_9675()
m_fifmyvas()
parseBlockId()
parseBlockId()
m_116826_()
private void
d()
readTag()
method_9677()
m_bniujfgd()
parseTagId()
parseTagId()
m_116830_()
private void
e()
readProperties()
method_9659()
m_uvwgetsl()
parseBlockProperties()
parseBlockProperties()
m_116834_()
private void
f()
readVagueProperties()
method_9680()
m_qgrihmzm()
parseTagProperties()
parseTagProperties()
m_116838_()
private void
g()
readNbt()
method_9672()
m_xqczamak()
parseSnbt()
parseSnbt()
m_116842_()
private <T extends Comparable<T>> void
a(dyw<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> property, String value, int cursor)
parsePropertyValue(Property<T> property, String value, int cursor)
m_116775_(C_2097_<T> p_116777_, String p_116778_, int arg2)
public static String
a(dxu arg0)
serialize(BlockState arg0)
method_9685(class_2680 arg0)
m_sznyfwfy(C_txtbiemp arg0)
stringifyBlockState(BlockState state)
stringifyBlockState(BlockState state)
m_116769_(C_2064_ p_116770_)
private static <T extends Comparable<T>> void
a(StringBuilder arg0, dyw<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 builder, Property<T> property, Comparable<?> value)
stringifyProperty(StringBuilder builder, Property<T> property, Comparable<?> value)
m_116802_(StringBuilder p_116803_, C_2097_<T> p_116804_, Comparable<?> p_116805_)