Class BlockStateArgument
java.lang.Object
net.minecraft.commands.arguments.blocks.BlockStateArgument
- All Implemented Interfaces:
- com.mojang.brigadier.arguments.ArgumentType<BlockInput>
public class BlockStateArgument
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<BlockInput>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final HolderLookup<Block>private static final Collection<String>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic BlockStateArgumentblock(CommandBuildContext p_234651_) static BlockInputgetBlock(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_116124_, String p_116125_) <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_116128_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_116129_) parse(com.mojang.brigadier.StringReader p_116122_) 
- 
Field Details- 
EXAMPLES
- 
blocks
 
- 
- 
Constructor Details- 
BlockStateArgument
 
- 
- 
Method Details- 
block
- 
parsepublic BlockInput parse(com.mojang.brigadier.StringReader p_116122_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
- parsein interface- com.mojang.brigadier.arguments.ArgumentType<BlockInput>
- Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
- 
getBlockpublic static BlockInput getBlock(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_116124_, String p_116125_) 
- 
listSuggestionspublic <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_116128_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_116129_) - Specified by:
- listSuggestionsin interface- com.mojang.brigadier.arguments.ArgumentType<BlockInput>
 
- 
getExamples- Specified by:
- getExamplesin interface- com.mojang.brigadier.arguments.ArgumentType<BlockInput>
 
 
-