Class NbtTagArgumentType

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

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

  • Constructor Details

    • NbtTagArgumentType

      private NbtTagArgumentType()
  • Method Details

    • nbtTag

      public static NbtTagArgumentType nbtTag()
    • getTag

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

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

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