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_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_)
    • suggestComponentAssignmentOrRemoval

      private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestComponentAssignmentOrRemoval(com.mojang.brigadier.suggestion.SuggestionsBuilder p_345256_)
    • suggestComponent

      private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestComponent(com.mojang.brigadier.suggestion.SuggestionsBuilder p_345045_)
    • suggestComponent

      private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestComponent(com.mojang.brigadier.suggestion.SuggestionsBuilder p_346056_, String p_346259_)