Class ItemParser.State

java.lang.Object
net.minecraft.commands.arguments.item.ItemParser.State
Enclosing class:
ItemParser

class ItemParser.State extends Object
  • Field Details

    • reader

      private final com.mojang.brigadier.StringReader reader
    • visitor

      private final ItemParser.Visitor 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_)