Class NBTTagArgument

java.lang.Object
net.minecraft.command.arguments.NBTTagArgument
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<INBT>

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

  • Constructor Details

    • NBTTagArgument

      private NBTTagArgument()
  • Method Details

    • nbtTag

      public static NBTTagArgument nbtTag()
    • getNbtTag

      public static <S> INBT getNbtTag(com.mojang.brigadier.context.CommandContext<S> p_218086_0_, String p_218086_1_)
    • parse

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

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