Package net.minecraft.command.argument
Class ItemPredicateArgumentType
java.lang.Object
net.minecraft.command.argument.ItemPredicateArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgumentType.ItemStackPredicateArgument>
public class ItemPredicateArgumentType
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgumentType.ItemStackPredicateArgument>
- Mappings:
Namespace Name named net/minecraft/command/argument/ItemPredicateArgumentType
intermediary net/minecraft/class_2293
official hi
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static final record
private static class
static interface
private static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Identifier
private static final Collection
<String> (package private) static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
(package private) static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
(package private) static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
private final ArgumentParser
<List<Predicate<ItemStack>>> (package private) static final Map
<Identifier, ItemPredicateArgumentType.ComponentCheck> (package private) static final Map
<Identifier, ItemPredicateArgumentType.SubPredicateCheck> (package private) static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
(package private) static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
(package private) static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetItemStackPredicate
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static ItemPredicateArgumentType
itemPredicate
(CommandRegistryAccess commandRegistryAccess) <S> CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> listSuggestions
(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) parse
(com.mojang.brigadier.StringReader stringReader) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mojang.brigadier.arguments.ArgumentType
parse
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector named EXAMPLES
Lnet/minecraft/command/argument/ItemPredicateArgumentType;EXAMPLES:Ljava/util/Collection;
intermediary field_10812
Lnet/minecraft/class_2293;field_10812:Ljava/util/Collection;
official a
Lhi;a:Ljava/util/Collection;
-
INVALID_ITEM_ID_EXCEPTION
static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_ITEM_ID_EXCEPTION- Mappings:
Namespace Name Mixin selector named INVALID_ITEM_ID_EXCEPTION
Lnet/minecraft/command/argument/ItemPredicateArgumentType;INVALID_ITEM_ID_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_50056
Lnet/minecraft/class_2293;field_50056:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
official b
Lhi;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
UNKNOWN_ITEM_TAG_EXCEPTION
static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_ITEM_TAG_EXCEPTION- Mappings:
Namespace Name Mixin selector named UNKNOWN_ITEM_TAG_EXCEPTION
Lnet/minecraft/command/argument/ItemPredicateArgumentType;UNKNOWN_ITEM_TAG_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_50057
Lnet/minecraft/class_2293;field_50057:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
official c
Lhi;c:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
UNKNOWN_ITEM_COMPONENT_EXCEPTION
static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_ITEM_COMPONENT_EXCEPTION- Mappings:
Namespace Name Mixin selector named UNKNOWN_ITEM_COMPONENT_EXCEPTION
Lnet/minecraft/command/argument/ItemPredicateArgumentType;UNKNOWN_ITEM_COMPONENT_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_50058
Lnet/minecraft/class_2293;field_50058:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
official d
Lhi;d:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
MALFORMED_ITEM_COMPONENT_EXCEPTION
static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType MALFORMED_ITEM_COMPONENT_EXCEPTION- Mappings:
Namespace Name Mixin selector named MALFORMED_ITEM_COMPONENT_EXCEPTION
Lnet/minecraft/command/argument/ItemPredicateArgumentType;MALFORMED_ITEM_COMPONENT_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
intermediary field_50059
Lnet/minecraft/class_2293;field_50059:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
official e
Lhi;e:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
-
UNKNOWN_ITEM_PREDICATE_EXCEPTION
static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_ITEM_PREDICATE_EXCEPTION- Mappings:
Namespace Name Mixin selector named UNKNOWN_ITEM_PREDICATE_EXCEPTION
Lnet/minecraft/command/argument/ItemPredicateArgumentType;UNKNOWN_ITEM_PREDICATE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_50060
Lnet/minecraft/class_2293;field_50060:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
official f
Lhi;f:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
MALFORMED_ITEM_PREDICATE_EXCEPTION
static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType MALFORMED_ITEM_PREDICATE_EXCEPTION- Mappings:
Namespace Name Mixin selector named MALFORMED_ITEM_PREDICATE_EXCEPTION
Lnet/minecraft/command/argument/ItemPredicateArgumentType;MALFORMED_ITEM_PREDICATE_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
intermediary field_50061
Lnet/minecraft/class_2293;field_50061:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
official g
Lhi;g:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
-
COUNT_ID
- Mappings:
Namespace Name Mixin selector named COUNT_ID
Lnet/minecraft/command/argument/ItemPredicateArgumentType;COUNT_ID:Lnet/minecraft/util/Identifier;
intermediary field_50062
Lnet/minecraft/class_2293;field_50062:Lnet/minecraft/class_2960;
official h
Lhi;h:Lalz;
-
SPECIAL_COMPONENT_CHECKS
- Mappings:
Namespace Name Mixin selector named SPECIAL_COMPONENT_CHECKS
Lnet/minecraft/command/argument/ItemPredicateArgumentType;SPECIAL_COMPONENT_CHECKS:Ljava/util/Map;
intermediary field_50063
Lnet/minecraft/class_2293;field_50063:Ljava/util/Map;
official i
Lhi;i:Ljava/util/Map;
-
SPECIAL_SUB_PREDICATE_CHECKS
static final Map<Identifier,ItemPredicateArgumentType.SubPredicateCheck> SPECIAL_SUB_PREDICATE_CHECKS- Mappings:
Namespace Name Mixin selector named SPECIAL_SUB_PREDICATE_CHECKS
Lnet/minecraft/command/argument/ItemPredicateArgumentType;SPECIAL_SUB_PREDICATE_CHECKS:Ljava/util/Map;
intermediary field_50064
Lnet/minecraft/class_2293;field_50064:Ljava/util/Map;
official j
Lhi;j:Ljava/util/Map;
-
parser
- Mappings:
Namespace Name Mixin selector named parser
Lnet/minecraft/command/argument/ItemPredicateArgumentType;parser:Lnet/minecraft/command/argument/packrat/ArgumentParser;
intermediary field_50065
Lnet/minecraft/class_2293;field_50065:Lnet/minecraft/class_9408;
official k
Lhi;k:Lbpb;
-
-
Constructor Details
-
ItemPredicateArgumentType
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/command/argument/ItemPredicateArgumentType;<init>(Lnet/minecraft/command/CommandRegistryAccess;)V
intermediary <init>
Lnet/minecraft/class_2293;<init>(Lnet/minecraft/class_7157;)V
official <init>
Lhi;<init>(Les;)V
-
-
Method Details
-
itemPredicate
- Mappings:
Namespace Name Mixin selector named itemPredicate
Lnet/minecraft/command/argument/ItemPredicateArgumentType;itemPredicate(Lnet/minecraft/command/CommandRegistryAccess;)Lnet/minecraft/command/argument/ItemPredicateArgumentType;
intermediary method_9801
Lnet/minecraft/class_2293;method_9801(Lnet/minecraft/class_7157;)Lnet/minecraft/class_2293;
official a
Lhi;a(Les;)Lhi;
-
parse
public ItemPredicateArgumentType.ItemStackPredicateArgument parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgumentType.ItemStackPredicateArgument>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector named parse
Lnet/minecraft/command/argument/ItemPredicateArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/ItemPredicateArgumentType$ItemStackPredicateArgument;
intermediary method_9800
Lnet/minecraft/class_2293;method_9800(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2293$class_2295;
official a
Lhi;a(Lcom/mojang/brigadier/StringReader;)Lhi$d;
-
getItemStackPredicate
public static ItemPredicateArgumentType.ItemStackPredicateArgument getItemStackPredicate(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) - Mappings:
Namespace Name Mixin selector named getItemStackPredicate
Lnet/minecraft/command/argument/ItemPredicateArgumentType;getItemStackPredicate(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/command/argument/ItemPredicateArgumentType$ItemStackPredicateArgument;
intermediary method_9804
Lnet/minecraft/class_2293;method_9804(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2293$class_2295;
official a
Lhi;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lhi$d;
-
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.ItemStackPredicateArgument>
- Mappings:
Namespace Name Mixin selector named listSuggestions
Lnet/minecraft/command/argument/ItemPredicateArgumentType;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;
official listSuggestions
Lhi;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.ItemStackPredicateArgument>
-