类 ItemPredicateArgument
java.lang.Object
net.minecraft.commands.arguments.item.ItemPredicateArgument
- 所有已实现的接口:
com.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgument.Result>
public class ItemPredicateArgument
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgument.Result>
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static ItemPredicateArgument.Result
createResult
(Predicate<Holder<Item>> pItemPredicate, CompoundTag pNbt) getItemPredicate
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pName) static ItemPredicateArgument
itemPredicate
(CommandBuildContext pContext) <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions
(com.mojang.brigadier.context.CommandContext<S> pContext, com.mojang.brigadier.suggestion.SuggestionsBuilder pBuilder) parse
(com.mojang.brigadier.StringReader pReader)
-
字段详细资料
-
EXAMPLES
-
items
-
-
构造器详细资料
-
ItemPredicateArgument
-
-
方法详细资料
-
itemPredicate
-
parse
public ItemPredicateArgument.Result parse(com.mojang.brigadier.StringReader pReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 指定者:
parse
在接口中com.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgument.Result>
- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getItemPredicate
public static Predicate<ItemStack> getItemPredicate(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pName) -
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> pContext, com.mojang.brigadier.suggestion.SuggestionsBuilder pBuilder) - 指定者:
listSuggestions
在接口中com.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgument.Result>
-
getExamples
- 指定者:
getExamples
在接口中com.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgument.Result>
-
createResult
private static ItemPredicateArgument.Result createResult(Predicate<Holder<Item>> pItemPredicate, @Nullable CompoundTag pNbt)
-