public class ItemPredicateArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgumentType.ItemPredicateArgument>
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ItemPredicateArgumentType.ItemPredicate |
static interface |
ItemPredicateArgumentType.ItemPredicateArgument |
(package private) static class |
ItemPredicateArgumentType.TagPredicate |
Modifier and Type | Field and Description |
---|---|
private static Collection<String> |
EXAMPLES |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
UNKNOWN_TAG_EXCEPTION |
Constructor and Description |
---|
ItemPredicateArgumentType() |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getExamples() |
static Predicate<ItemStack> |
getItemPredicate(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
String name) |
static ItemPredicateArgumentType |
itemPredicate() |
<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context,
com.mojang.brigadier.suggestion.SuggestionsBuilder builder) |
ItemPredicateArgumentType.ItemPredicateArgument |
parse(com.mojang.brigadier.StringReader stringReader) |
private static final Collection<String> EXAMPLES
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_TAG_EXCEPTION
public static ItemPredicateArgumentType itemPredicate()
public ItemPredicateArgumentType.ItemPredicateArgument parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgumentType.ItemPredicateArgument>
com.mojang.brigadier.exceptions.CommandSyntaxException
public static Predicate<ItemStack> getItemPredicate(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
listSuggestions
in interface com.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgumentType.ItemPredicateArgument>
public Collection<String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgumentType.ItemPredicateArgument>