Package net.minecraft.command.argument
Class ItemPredicateArgumentType
java.lang.Object
net.minecraft.command.argument.ItemPredicateArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgumentType.ItemPredicateArgument>
public class ItemPredicateArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgumentType.ItemPredicateArgument>
- Mappings:
Namespace Name official ez
intermediary net/minecraft/class_2293
named net/minecraft/command/argument/ItemPredicateArgumentType
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
ItemPredicateArgumentType.ItemPredicate
static interface
ItemPredicateArgumentType.ItemPredicateArgument
(package private) static class
ItemPredicateArgumentType.TagPredicate
-
Field Summary
Fields Modifier and Type Field Description private static Collection<String>
EXAMPLES
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
UNKNOWN_TAG_EXCEPTION
-
Constructor Summary
Constructors Constructor Description ItemPredicateArgumentType()
-
Method Summary
Modifier and Type Method 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)
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector official a
Lez;a:Ljava/util/Collection;
intermediary field_10812
Lnet/minecraft/class_2293;field_10812:Ljava/util/Collection;
named EXAMPLES
Lnet/minecraft/command/argument/ItemPredicateArgumentType;EXAMPLES:Ljava/util/Collection;
-
UNKNOWN_TAG_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_TAG_EXCEPTION- Mappings:
Namespace Name Mixin selector official b
Lez;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_10811
Lnet/minecraft/class_2293;field_10811:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named UNKNOWN_TAG_EXCEPTION
Lnet/minecraft/command/argument/ItemPredicateArgumentType;UNKNOWN_TAG_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
-
Constructor Details
-
ItemPredicateArgumentType
public ItemPredicateArgumentType()
-
-
Method Details
-
itemPredicate
- Mappings:
Namespace Name Mixin selector official a
Lez;a()Lez;
intermediary method_9801
Lnet/minecraft/class_2293;method_9801()Lnet/minecraft/class_2293;
named itemPredicate
Lnet/minecraft/command/argument/ItemPredicateArgumentType;itemPredicate()Lnet/minecraft/command/argument/ItemPredicateArgumentType;
-
parse
public ItemPredicateArgumentType.ItemPredicateArgument parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgumentType.ItemPredicateArgument>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lez;a(Lcom/mojang/brigadier/StringReader;)Lez$b;
intermediary method_9800
Lnet/minecraft/class_2293;method_9800(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2293$class_2295;
named parse
Lnet/minecraft/command/argument/ItemPredicateArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/ItemPredicateArgumentType$ItemPredicateArgument;
-
getItemPredicate
public static Predicate<ItemStack> getItemPredicate(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lez;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/function/Predicate;
intermediary method_9804
Lnet/minecraft/class_2293;method_9804(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/function/Predicate;
named getItemPredicate
Lnet/minecraft/command/argument/ItemPredicateArgumentType;getItemPredicate(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/function/Predicate;
-
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)- Specified by:
listSuggestions
in interfacecom.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgumentType.ItemPredicateArgument>
- Mappings:
Namespace Name Mixin selector official listSuggestions
Lez;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
intermediary listSuggestions
Lnet/minecraft/class_2293;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
named listSuggestions
Lnet/minecraft/command/argument/ItemPredicateArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgumentType.ItemPredicateArgument>
- Mappings:
Namespace Name Mixin selector official getExamples
Lez;getExamples()Ljava/util/Collection;
intermediary getExamples
Lnet/minecraft/class_2293;getExamples()Ljava/util/Collection;
named getExamples
Lnet/minecraft/command/argument/ItemPredicateArgumentType;getExamples()Ljava/util/Collection;
-