类 BlockStateArgument
java.lang.Object
net.minecraft.commands.arguments.blocks.BlockStateArgument
- 所有已实现的接口:
com.mojang.brigadier.arguments.ArgumentType<BlockInput>
public class BlockStateArgument
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<BlockInput>
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static 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_) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 com.mojang.brigadier.arguments.ArgumentType
parse
-
字段详细资料
-
EXAMPLES
-
blocks
-
-
构造器详细资料
-
BlockStateArgument
-
-
方法详细资料
-
block
-
parse
public BlockInput parse(com.mojang.brigadier.StringReader p_116122_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 指定者:
parse
在接口中com.mojang.brigadier.arguments.ArgumentType<BlockInput>
- 抛出:
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_) - 指定者:
listSuggestions
在接口中com.mojang.brigadier.arguments.ArgumentType<BlockInput>
-
getExamples
- 指定者:
getExamples
在接口中com.mojang.brigadier.arguments.ArgumentType<BlockInput>
-