Class NbtCompoundTagArgumentType

java.lang.Object
net.minecraft.command.argument.NbtCompoundTagArgumentType
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<CompoundTag>

public class NbtCompoundTagArgumentType
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<CompoundTag>
  • Field Details

  • Constructor Details

    • NbtCompoundTagArgumentType

      private NbtCompoundTagArgumentType()
  • Method Details

    • nbtCompound

      public static NbtCompoundTagArgumentType nbtCompound()
    • getCompoundTag

      public static <S> CompoundTag getCompoundTag​(com.mojang.brigadier.context.CommandContext<S> context, String name)
    • parse

      public CompoundTag parse​(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<CompoundTag>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getExamples

      public Collection<String> getExamples()
      Specified by:
      getExamples in interface com.mojang.brigadier.arguments.ArgumentType<CompoundTag>