Class ItemParser
java.lang.Object
net.minecraft.commands.arguments.item.ItemParser
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
(package private) class
(package private) static class
static interface
-
Field Summary
Modifier and TypeFieldDescription(package private) static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
(package private) static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
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
(package private) static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
(package private) final HolderLookup.RegistryLookup
<Item> (package private) final com.mojang.serialization.DynamicOps
<Tag> (package private) static final Function
<com.mojang.brigadier.suggestion.SuggestionsBuilder, CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>> static final char
static final char
static final char
static final char
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> fillSuggestions
(com.mojang.brigadier.suggestion.SuggestionsBuilder p_235310_) parse
(com.mojang.brigadier.StringReader p_324270_) void
parse
(com.mojang.brigadier.StringReader p_336039_, ItemParser.Visitor p_335987_) private static void
validateComponents
(com.mojang.brigadier.StringReader p_341137_, Holder<Item> p_341139_, DataComponentMap p_341277_)
-
Field Details
-
ERROR_UNKNOWN_ITEM
static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_ITEM -
ERROR_UNKNOWN_COMPONENT
static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_COMPONENT -
ERROR_MALFORMED_COMPONENT
static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_MALFORMED_COMPONENT -
ERROR_EXPECTED_COMPONENT
static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_EXPECTED_COMPONENT -
ERROR_REPEATED_COMPONENT
static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_REPEATED_COMPONENT -
ERROR_MALFORMED_ITEM
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_MALFORMED_ITEM -
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:
-
SUGGEST_NOTHING
static final Function<com.mojang.brigadier.suggestion.SuggestionsBuilder,CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>> SUGGEST_NOTHING -
items
-
registryOps
-
-
Constructor Details
-
ItemParser
-
-
Method Details
-
parse
public ItemParser.ItemResult parse(com.mojang.brigadier.StringReader p_324270_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
validateComponents
private static void validateComponents(com.mojang.brigadier.StringReader p_341137_, Holder<Item> p_341139_, DataComponentMap p_341277_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
parse
public void parse(com.mojang.brigadier.StringReader p_336039_, ItemParser.Visitor p_335987_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
fillSuggestions
public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> fillSuggestions(com.mojang.brigadier.suggestion.SuggestionsBuilder p_235310_)
-