Class ItemParser
java.lang.Object
net.minecraft.commands.arguments.item.ItemParser
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate static classstatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final SimpleCommandExceptionTypeprivate static final Dynamic2CommandExceptionTypeprivate static final DynamicCommandExceptionTypeprivate static final DynamicCommandExceptionTypeprivate static final DynamicCommandExceptionTypeprivate final HolderLookup.RegistryLookup<Item> private final RegistryOps<Tag> private static final Function<SuggestionsBuilder, CompletableFuture<Suggestions>> static final charstatic final charstatic final charstatic final charstatic final char -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfillSuggestions(SuggestionsBuilder builder) parse(StringReader reader) voidparse(StringReader reader, ItemParser.Visitor visitor)
-
Field Details
-
ERROR_UNKNOWN_ITEM
-
ERROR_UNKNOWN_COMPONENT
-
ERROR_MALFORMED_COMPONENT
-
ERROR_EXPECTED_COMPONENT
-
ERROR_REPEATED_COMPONENT
-
SYNTAX_START_COMPONENTS
public static final char SYNTAX_START_COMPONENTS- See Also:
-
SYNTAX_END_COMPONENTS
public static final char SYNTAX_END_COMPONENTS- See Also:
-
SYNTAX_COMPONENT_SEPARATOR
public static final char SYNTAX_COMPONENT_SEPARATOR- See Also:
-
SYNTAX_COMPONENT_ASSIGNMENT
public static final char SYNTAX_COMPONENT_ASSIGNMENT- See Also:
-
SYNTAX_REMOVED_COMPONENT
public static final char SYNTAX_REMOVED_COMPONENT- See Also:
-
SUGGEST_NOTHING
-
items
-
registryOps
-
tagParser
-
-
Constructor Details
-
ItemParser
-
-
Method Details
-
parse
- Throws:
CommandSyntaxException
-
parse
- Throws:
CommandSyntaxException
-
fillSuggestions
-