Class NBTCompoundTagArgument

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

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

  • Constructor Details

    • NBTCompoundTagArgument

      private NBTCompoundTagArgument()
  • Method Details

    • compoundTag

      public static NBTCompoundTagArgument compoundTag()
    • getCompoundTag

      public static <S> CompoundNBT getCompoundTag(com.mojang.brigadier.context.CommandContext<S> p_218042_0_, String p_218042_1_)
    • parse

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

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