public class ItemPredicateArgument extends java.lang.Object implements com.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgument.IResult>
Modifier and Type | Class and Description |
---|---|
static interface |
ItemPredicateArgument.IResult |
(package private) static class |
ItemPredicateArgument.ItemPredicate |
(package private) static class |
ItemPredicateArgument.TagPredicate |
Modifier and Type | Field and Description |
---|---|
private static java.util.Collection<java.lang.String> |
EXAMPLES |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
UNKNOWN_TAG |
Constructor and Description |
---|
ItemPredicateArgument() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.lang.String> |
getExamples() |
static java.util.function.Predicate<ItemStack> |
getItemPredicate(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String name) |
static ItemPredicateArgument |
itemPredicate() |
<S> java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_listSuggestions_1_,
com.mojang.brigadier.suggestion.SuggestionsBuilder p_listSuggestions_2_) |
ItemPredicateArgument.IResult |
parse(com.mojang.brigadier.StringReader p_parse_1_) |
private static final java.util.Collection<java.lang.String> EXAMPLES
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_TAG
public static ItemPredicateArgument itemPredicate()
public ItemPredicateArgument.IResult parse(com.mojang.brigadier.StringReader p_parse_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgument.IResult>
com.mojang.brigadier.exceptions.CommandSyntaxException
public static java.util.function.Predicate<ItemStack> getItemPredicate(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public <S> java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_listSuggestions_1_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_listSuggestions_2_)
listSuggestions
in interface com.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgument.IResult>
public java.util.Collection<java.lang.String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgument.IResult>