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 eh
intermediary net/minecraft/class_2212
named net/minecraft/command/argument/NbtElementArgumentType
-
Field Summary
-
Constructor Summary
-
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
Leh;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
Leh;a()Leh;
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
Leh;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lrx;
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
Leh;a(Lcom/mojang/brigadier/StringReader;)Lrx;
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>
-