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 Summary
Modifier and TypeFieldDescriptionprivate final HolderLookup<Block>
private static final Collection<String>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BlockStateArgument
block
(CommandBuildContext p_234651_) static BlockInput
getBlock
(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
-
parse
public BlockInput parse(com.mojang.brigadier.StringReader p_116122_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<BlockInput>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getBlock
public static BlockInput getBlock(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_116124_, String p_116125_) -
listSuggestions
public <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:
listSuggestions
in interfacecom.mojang.brigadier.arguments.ArgumentType<BlockInput>
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<BlockInput>
-