Class NbtElementArgumentType

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

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

  • Constructor Details

    • NbtElementArgumentType

      private NbtElementArgumentType()
  • Method Details

    • nbtElement

      public static NbtElementArgumentType nbtElement()
    • getNbtElement

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

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

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