Class BlockStateArgument
java.lang.Object
net.minecraft.commands.arguments.blocks.BlockStateArgument
- All Implemented Interfaces:
ArgumentType<BlockInput>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HolderLookup<Block> private static final Collection<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockStateArgumentblock(CommandBuildContext context) static BlockInputgetBlock(CommandContext<CommandSourceStack> context, String name) listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) parse(StringReader reader) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ArgumentType
parse
-
Field Details
-
EXAMPLES
-
blocks
-
-
Constructor Details
-
BlockStateArgument
-
-
Method Details
-
block
-
parse
- Specified by:
parsein interfaceArgumentType<BlockInput>- Throws:
CommandSyntaxException
-
getBlock
-
listSuggestions
public <S> CompletableFuture<Suggestions> listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) - Specified by:
listSuggestionsin interfaceArgumentType<BlockInput>
-
getExamples
- Specified by:
getExamplesin interfaceArgumentType<BlockInput>
-