Class NbtTagArgument

java.lang.Object
net.minecraft.commands.arguments.NbtTagArgument
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Tag>

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

  • Constructor Details

    • NbtTagArgument

      private NbtTagArgument()
  • Method Details

    • nbtTag

      public static NbtTagArgument nbtTag()
    • getNbtTag

      public static <S> Tag getNbtTag(com.mojang.brigadier.context.CommandContext<S> p_100663_, String p_100664_)
    • parse

      public Tag parse(com.mojang.brigadier.StringReader p_100661_) 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>