类 BlockPredicateArgument
java.lang.Object
net.minecraft.commands.arguments.blocks.BlockPredicateArgument
- 所有已实现的接口:
com.mojang.brigadier.arguments.ArgumentType<BlockPredicateArgument.Result>
public class BlockPredicateArgument
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<BlockPredicateArgument.Result>
-
嵌套类概要
嵌套类修饰符和类型类说明(专用程序包) static class
static interface
(专用程序包) static class
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static BlockPredicateArgument
blockPredicate
(CommandBuildContext p_234628_) static Predicate
<BlockInWorld> getBlockPredicate
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_115574_, String p_115575_) <S> CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> listSuggestions
(com.mojang.brigadier.context.CommandContext<S> p_115587_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_115588_) parse
(com.mojang.brigadier.StringReader p_115572_) parse
(HolderLookup<Block> p_234634_, com.mojang.brigadier.StringReader p_234635_) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 com.mojang.brigadier.arguments.ArgumentType
parse
-
字段详细资料
-
EXAMPLES
-
blocks
-
-
构造器详细资料
-
BlockPredicateArgument
-
-
方法详细资料
-
blockPredicate
-
parse
public BlockPredicateArgument.Result parse(com.mojang.brigadier.StringReader p_115572_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 指定者:
parse
在接口中com.mojang.brigadier.arguments.ArgumentType<BlockPredicateArgument.Result>
- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
parse
public static BlockPredicateArgument.Result parse(HolderLookup<Block> p_234634_, com.mojang.brigadier.StringReader p_234635_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getBlockPredicate
public static Predicate<BlockInWorld> getBlockPredicate(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_115574_, String p_115575_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_115587_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_115588_) - 指定者:
listSuggestions
在接口中com.mojang.brigadier.arguments.ArgumentType<BlockPredicateArgument.Result>
-
getExamples
- 指定者:
getExamples
在接口中com.mojang.brigadier.arguments.ArgumentType<BlockPredicateArgument.Result>
-