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_334622_, ItemParser.Visitor p_332237_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
parse()
private <T> void
readComponent
(DataComponentType<T> p_330643_) private void
static DataComponentType
<?> readComponentType
(com.mojang.brigadier.StringReader p_330692_) private void
readItem()
private CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> suggestAssignment
(com.mojang.brigadier.suggestion.SuggestionsBuilder p_335223_) private CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> suggestComponentAssignment
(com.mojang.brigadier.suggestion.SuggestionsBuilder p_331521_) private CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> suggestItem
(com.mojang.brigadier.suggestion.SuggestionsBuilder p_329594_) private CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> suggestNextOrEndComponents
(com.mojang.brigadier.suggestion.SuggestionsBuilder p_335586_) private CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> suggestStartComponents
(com.mojang.brigadier.suggestion.SuggestionsBuilder p_333169_)
-
Field Details
-
reader
private final com.mojang.brigadier.StringReader reader -
visitor
-
-
Constructor Details
-
State
State(com.mojang.brigadier.StringReader p_334622_, ItemParser.Visitor p_332237_)
-
-
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_330692_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readComponent
private <T> void readComponent(DataComponentType<T> p_330643_) 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_333169_) -
suggestNextOrEndComponents
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestNextOrEndComponents(com.mojang.brigadier.suggestion.SuggestionsBuilder p_335586_) -
suggestAssignment
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestAssignment(com.mojang.brigadier.suggestion.SuggestionsBuilder p_335223_) -
suggestItem
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestItem(com.mojang.brigadier.suggestion.SuggestionsBuilder p_329594_) -
suggestComponentAssignment
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestComponentAssignment(com.mojang.brigadier.suggestion.SuggestionsBuilder p_331521_)
-