Class CompoundTagParser<C>

java.lang.Object
org.incendo.cloud.brigadier.parser.WrappedBrigadierParser<C, net.minecraft.nbt.CompoundTag>
org.incendo.cloud.minecraft.modded.parser.CompoundTagParser<C>
Type Parameters:
C - the sender type
All Implemented Interfaces:
ArgumentParser<C, net.minecraft.nbt.CompoundTag>, SuggestionProvider<C>, SuggestionProviderHolder<C>

public final class CompoundTagParser<C> extends WrappedBrigadierParser<C, net.minecraft.nbt.CompoundTag>
An argument parser for the string representation of an NBT CompoundTag.
  • Method Details

    • compoundTagParser

      public static <C> @NonNull ParserDescriptor<C, net.minecraft.nbt.CompoundTag> compoundTagParser()
      Creates a new compound tag parser.
      Type Parameters:
      C - command sender type
      Returns:
      the created parser
    • compoundTagComponent

      public static <C> @NonNull CommandComponent.Builder<C, net.minecraft.nbt.CompoundTag> compoundTagComponent()
      Returns a CommandComponent.Builder using compoundTagParser() as the parser.
      Type Parameters:
      C - the command sender type
      Returns:
      the component builder