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>
Mappings:
Namespace Name
named net/minecraft/command/argument/NbtElementArgumentType
intermediary net/minecraft/class_2212
official fp
  • Field Details

    • EXAMPLES

      private static final Collection<String> EXAMPLES
      Mappings:
      Namespace Name Mixin selector
      named EXAMPLES Lnet/minecraft/command/argument/NbtElementArgumentType;EXAMPLES:Ljava/util/Collection;
      intermediary field_9918 Lnet/minecraft/class_2212;field_9918:Ljava/util/Collection;
      official a Lfp;a:Ljava/util/Collection;
  • Constructor Details

    • NbtElementArgumentType

      private NbtElementArgumentType()
  • Method Details

    • nbtElement

      public static NbtElementArgumentType nbtElement()
      Mappings:
      Namespace Name Mixin selector
      named nbtElement Lnet/minecraft/command/argument/NbtElementArgumentType;nbtElement()Lnet/minecraft/command/argument/NbtElementArgumentType;
      intermediary method_9389 Lnet/minecraft/class_2212;method_9389()Lnet/minecraft/class_2212;
      official a Lfp;a()Lfp;
    • getNbtElement

      public static <S> NbtElement getNbtElement(com.mojang.brigadier.context.CommandContext<S> context, String name)
      Mappings:
      Namespace Name Mixin selector
      named getNbtElement Lnet/minecraft/command/argument/NbtElementArgumentType;getNbtElement(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/nbt/NbtElement;
      intermediary method_9390 Lnet/minecraft/class_2212;method_9390(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2520;
      official a Lfp;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lvu;
    • 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
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/command/argument/NbtElementArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/nbt/NbtElement;
      intermediary method_9388 Lnet/minecraft/class_2212;method_9388(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2520;
      official a Lfp;a(Lcom/mojang/brigadier/StringReader;)Lvu;
    • getExamples

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