net.minecraft.commands.arguments.blocks

public class BlockStateParser

gq
net.minecraft.commands.arguments.blocks.BlockStateParser
net.minecraft.class_2259
net.minecraft.command.argument.BlockArgumentParser
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
DISALLOWED_TAG_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
b
ERROR_UNKNOWN_BLOCK
field_10690
INVALID_BLOCK_ID_EXCEPTION
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
c
ERROR_UNKNOWN_PROPERTY
field_10695
UNKNOWN_PROPERTY_EXCEPTION
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
d
ERROR_DUPLICATE_PROPERTY
field_10692
DUPLICATE_PROPERTY_EXCEPTION
public static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType
e
ERROR_INVALID_VALUE
field_10683
INVALID_PROPERTY_EXCEPTION
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
f
ERROR_EXPECTED_VALUE
field_10688
EMPTY_PROPERTY_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
g
ERROR_EXPECTED_END_OF_PROPERTIES
field_10684
UNCLOSED_PROPERTIES_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
h
ERROR_UNKNOWN_TAG
field_37965
UNKNOWN_BLOCK_TAG_EXCEPTION
private static final char
i
SYNTAX_START_PROPERTIES
field_32800
PROPERTIES_OPENING
private static final char
j
SYNTAX_START_NBT
field_32801
NBT_OPENING
private static final char
k
SYNTAX_END_PROPERTIES
field_32802
PROPERTIES_CLOSING
private static final char
l
SYNTAX_EQUALS
field_32803
PROPERTY_DEFINER
private static final char
m
SYNTAX_PROPERTY_SEPARATOR
field_32804
PROPERTY_SEPARATOR
private static final char
n
SYNTAX_TAG
field_32805
TAG_PREFIX
private static final Function<com.mojang.brigadier.suggestion.SuggestionsBuilder, CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>>
o
SUGGEST_NOTHING
field_10682
SUGGEST_DEFAULT
private final HolderLookup<Block>
p
blocks
field_37966
registryWrapper
private final com.mojang.brigadier.StringReader
q
reader
field_10698
reader
private final boolean
r
forTesting
field_10687
allowTag
private final boolean
s
allowNbt
field_37967
allowSnbt
private final Map<Property<?>, Comparable<?>>
t
properties
field_10699
blockProperties
private final Map<String, String>
u
vagueProperties
field_10685
tagProperties
private ResourceLocation
v
id
field_10697
blockId
private StateDefinition<Block, BlockState>
w
definition
field_10689
stateFactory
private BlockState
x
state
field_10686
blockState
private CompoundTag
y
nbt
field_10693
data
private HolderSet<Block>
z
tag
field_10681
tagId
private Function<com.mojang.brigadier.suggestion.SuggestionsBuilder, CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>>
A
suggestions
field_10696
suggestions

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<dkm> arg0, String arg1, boolean arg2)
parseForBlock(HolderLookup<Block> arg0, String arg1, boolean arg2)
method_41957(class_7225<class_2248> arg0, String arg1, boolean arg2)
block(RegistryWrapper<Block> registryWrapper, String string, boolean allowSnbt)
public static BlockStateParser$BlockResult
a(js<dkm> 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)
block(RegistryWrapper<Block> registryWrapper, com.mojang.brigadier.StringReader reader, boolean allowSnbt)
public static com.mojang.datafixers.util.Either<BlockStateParser$BlockResult, BlockStateParser$TagResult>
b(js<dkm> arg0, String arg1, boolean arg2)
parseForTesting(HolderLookup<Block> arg0, String arg1, boolean arg2)
method_41962(class_7225<class_2248> arg0, String arg1, boolean arg2)
blockOrTag(RegistryWrapper<Block> registryWrapper, String string, boolean allowSnbt)
public static com.mojang.datafixers.util.Either<BlockStateParser$BlockResult, BlockStateParser$TagResult>
b(js<dkm> 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)
blockOrTag(RegistryWrapper<Block> registryWrapper, com.mojang.brigadier.StringReader reader, boolean allowSnbt)
public static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
a(js<dkm> 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)
getSuggestions(RegistryWrapper<Block> registryWrapper, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, boolean allowTag, boolean allowSnbt)
private void
a()
parse()
method_9678()
parse()
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)
suggestBlockPropertiesOrEnd(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
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)
suggestTagPropertiesOrEnd(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
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)
suggestBlockProperties(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
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)
suggestTagProperties(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
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)
suggestSnbt(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
private boolean
b()
hasBlockEntity()
method_9676()
hasBlockEntity()
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)
suggestEqualsCharacter(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
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)
suggestCommaOrEnd(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
private static <T extends Comparable<T>> com.mojang.brigadier.suggestion.SuggestionsBuilder
a(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, dyx<T> arg1)
addSuggestions(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Property<T> arg1)
method_9662(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, class_2769<T> arg1)
suggestPropertyValues(com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Property<T> property)
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)
suggestTagPropertyValues(com.mojang.brigadier.suggestion.SuggestionsBuilder builder, String name)
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)
suggestSnbtOrTagProperties(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
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)
suggestSnbtOrBlockProperties(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
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)
suggestIdentifiers(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
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)
suggestBlockId(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
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)
suggestBlockOrTagId(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
private void
c()
readBlock()
method_9675()
parseBlockId()
private void
d()
readTag()
method_9677()
parseTagId()
private void
e()
readProperties()
method_9659()
parseBlockProperties()
private void
f()
readVagueProperties()
method_9680()
parseTagProperties()
private void
g()
readNbt()
method_9672()
parseSnbt()
private <T extends Comparable<T>> void
a(dyx<T> arg0, String arg1, int arg2)
setValue(Property<T> arg0, String arg1, int arg2)
method_9668(class_2769<T> arg0, String arg1, int arg2)
parsePropertyValue(Property<T> property, String value, int cursor)
public static String
a(dxv arg0)
serialize(BlockState arg0)
method_9685(class_2680 arg0)
stringifyBlockState(BlockState state)
private static <T extends Comparable<T>> void
a(StringBuilder arg0, dyx<T> arg1, Comparable<?> arg2)
appendProperty(StringBuilder arg0, Property<T> arg1, Comparable<?> arg2)
method_9663(StringBuilder arg0, class_2769<T> arg1, Comparable<?> arg2)
stringifyProperty(StringBuilder builder, Property<T> property, Comparable<?> value)