Class ItemParser.State
java.lang.Object
net.minecraft.commands.arguments.item.ItemParser.State
- Enclosing class:
ItemParser
-
Field Summary
Modifier and TypeFieldDescriptionprivate final com.mojang.brigadier.StringReader
private final ItemParser.Visitor
-
Constructor Summary
ConstructorDescriptionState
(com.mojang.brigadier.StringReader p_335807_, ItemParser.Visitor p_336013_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
parse()
private <T> void
readComponent
(DataComponentType<T> p_335594_) private void
static DataComponentType
<?> readComponentType
(com.mojang.brigadier.StringReader p_335663_) private void
readItem()
private CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> suggestAssignment
(com.mojang.brigadier.suggestion.SuggestionsBuilder p_335975_) private CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> suggestComponentAssignment
(com.mojang.brigadier.suggestion.SuggestionsBuilder p_335448_) private CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> suggestItem
(com.mojang.brigadier.suggestion.SuggestionsBuilder p_336095_) private CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> suggestNextOrEndComponents
(com.mojang.brigadier.suggestion.SuggestionsBuilder p_335894_) private CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> suggestStartComponents
(com.mojang.brigadier.suggestion.SuggestionsBuilder p_335464_)
-
Field Details
-
reader
private final com.mojang.brigadier.StringReader reader -
visitor
-
-
Constructor Details
-
State
State(com.mojang.brigadier.StringReader p_335807_, ItemParser.Visitor p_336013_)
-
-
Method Details
-
parse
public void parse() throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readItem
private void readItem() throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readComponents
private void readComponents() throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readComponentType
public static DataComponentType<?> readComponentType(com.mojang.brigadier.StringReader p_335663_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readComponent
private <T> void readComponent(DataComponentType<T> p_335594_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
suggestStartComponents
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestStartComponents(com.mojang.brigadier.suggestion.SuggestionsBuilder p_335464_) -
suggestNextOrEndComponents
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestNextOrEndComponents(com.mojang.brigadier.suggestion.SuggestionsBuilder p_335894_) -
suggestAssignment
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestAssignment(com.mojang.brigadier.suggestion.SuggestionsBuilder p_335975_) -
suggestItem
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestItem(com.mojang.brigadier.suggestion.SuggestionsBuilder p_336095_) -
suggestComponentAssignment
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestComponentAssignment(com.mojang.brigadier.suggestion.SuggestionsBuilder p_335448_)
-