public class BlockStateArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<BlockStateArgument>
Modifier and Type | Field and Description |
---|---|
private static Collection<String> |
EXAMPLES |
Constructor and Description |
---|
BlockStateArgumentType() |
Modifier and Type | Method and Description |
---|---|
static BlockStateArgumentType |
blockState() |
static BlockStateArgument |
getBlockState(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
String name) |
Collection<String> |
getExamples() |
<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context,
com.mojang.brigadier.suggestion.SuggestionsBuilder builder) |
BlockStateArgument |
parse(com.mojang.brigadier.StringReader stringReader) |
private static final Collection<String> EXAMPLES
public static BlockStateArgumentType blockState()
public BlockStateArgument parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<BlockStateArgument>
com.mojang.brigadier.exceptions.CommandSyntaxException
public static BlockStateArgument getBlockState(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
listSuggestions
in interface com.mojang.brigadier.arguments.ArgumentType<BlockStateArgument>
public Collection<String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<BlockStateArgument>