Class ItemPredicateArgument
java.lang.Object
net.minecraft.util.parsing.packrat.commands.ParserBasedArgument<ItemPredicateArgument.Result>
net.minecraft.commands.arguments.item.ItemPredicateArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgument.Result>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final recordprivate static classprivate static final recordstatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Identifierprivate static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final Collection<String> private static final Map<Identifier, ItemPredicateArgument.ComponentWrapper> private static final Map<Identifier, ItemPredicateArgument.PredicateWrapper> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static ItemPredicateArgument.PredicateWrappercreateComponentExistencePredicate(Holder.Reference<DataComponentType<?>> componentId) static ItemPredicateArgument.ResultgetItemPredicate(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) static ItemPredicateArgumentitemPredicate(CommandBuildContext context) Methods inherited from class ParserBasedArgument
listSuggestions, parseMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
parse
-
Field Details
-
EXAMPLES
-
ERROR_UNKNOWN_ITEM
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_ITEM -
ERROR_UNKNOWN_TAG
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_TAG -
ERROR_UNKNOWN_COMPONENT
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_COMPONENT -
ERROR_MALFORMED_COMPONENT
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_MALFORMED_COMPONENT -
ERROR_UNKNOWN_PREDICATE
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_PREDICATE -
ERROR_MALFORMED_PREDICATE
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_MALFORMED_PREDICATE -
COUNT_ID
-
PSEUDO_COMPONENTS
-
PSEUDO_PREDICATES
-
-
Constructor Details
-
ItemPredicateArgument
-
-
Method Details
-
createComponentExistencePredicate
private static ItemPredicateArgument.PredicateWrapper createComponentExistencePredicate(Holder.Reference<DataComponentType<?>> componentId) -
itemPredicate
-
getItemPredicate
public static ItemPredicateArgument.Result getItemPredicate(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) -
getExamples
-