Package net.minecraft.command.argument
Class BlockStateArgumentType
java.lang.Object
net.minecraft.command.argument.BlockStateArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<BlockStateArgument>
public class BlockStateArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<BlockStateArgument>
-
Field Summary
Fields Modifier and Type Field Description private static Collection<String>
EXAMPLES
-
Constructor Summary
Constructors Constructor Description BlockStateArgumentType()
-
Method Summary
Modifier and Type Method 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)
-
Field Details
-
EXAMPLES
-
-
Constructor Details
-
BlockStateArgumentType
public BlockStateArgumentType()
-
-
Method Details
-
blockState
-
parse
public BlockStateArgument parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<BlockStateArgument>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getBlockState
public static BlockStateArgument getBlockState(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) -
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)- Specified by:
listSuggestions
in interfacecom.mojang.brigadier.arguments.ArgumentType<BlockStateArgument>
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<BlockStateArgument>
-