Package net.minecraft.command.argument
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 official ei
intermediary net/minecraft/class_2212
named net/minecraft/command/argument/NbtElementArgumentType
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <S> NbtElement
getNbtElement
(com.mojang.brigadier.context.CommandContext<S> context, String name) static NbtElementArgumentType
parse
(com.mojang.brigadier.StringReader stringReader) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mojang.brigadier.arguments.ArgumentType
listSuggestions
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector official a
Lei;a:Ljava/util/Collection;
intermediary field_9918
Lnet/minecraft/class_2212;field_9918:Ljava/util/Collection;
named EXAMPLES
Lnet/minecraft/command/argument/NbtElementArgumentType;EXAMPLES:Ljava/util/Collection;
-
-
Constructor Details
-
NbtElementArgumentType
private NbtElementArgumentType()
-
-
Method Details
-
nbtElement
- Mappings:
Namespace Name Mixin selector official a
Lei;a()Lei;
intermediary method_9389
Lnet/minecraft/class_2212;method_9389()Lnet/minecraft/class_2212;
named nbtElement
Lnet/minecraft/command/argument/NbtElementArgumentType;nbtElement()Lnet/minecraft/command/argument/NbtElementArgumentType;
-
getNbtElement
public static <S> NbtElement getNbtElement(com.mojang.brigadier.context.CommandContext<S> context, String name) - Mappings:
Namespace Name Mixin selector official a
Lei;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lqc;
intermediary method_9390
Lnet/minecraft/class_2212;method_9390(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2520;
named getNbtElement
Lnet/minecraft/command/argument/NbtElementArgumentType;getNbtElement(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/nbt/NbtElement;
-
parse
public NbtElement parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<NbtElement>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lei;a(Lcom/mojang/brigadier/StringReader;)Lqc;
intermediary method_9388
Lnet/minecraft/class_2212;method_9388(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2520;
named parse
Lnet/minecraft/command/argument/NbtElementArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/nbt/NbtElement;
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<NbtElement>
-