Package net.minecraft.command.argument
Class IdentifierArgumentType
java.lang.Object
net.minecraft.command.argument.IdentifierArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Identifier>
public class IdentifierArgumentType
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<Identifier>
- Mappings:
Namespace Name named net/minecraft/command/argument/IdentifierArgumentType
intermediary net/minecraft/class_2232
official fu
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Collection
<String> private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AdvancementEntry
getAdvancementArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName) static Identifier
getIdentifier
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static RecipeEntry
<?> getRecipeArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName) static IdentifierArgumentType
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, parse
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector named EXAMPLES
Lnet/minecraft/command/argument/IdentifierArgumentType;EXAMPLES:Ljava/util/Collection;
intermediary field_9946
Lnet/minecraft/class_2232;field_9946:Ljava/util/Collection;
official a
Lfu;a:Ljava/util/Collection;
-
UNKNOWN_ADVANCEMENT_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_ADVANCEMENT_EXCEPTION- Mappings:
Namespace Name Mixin selector named UNKNOWN_ADVANCEMENT_EXCEPTION
Lnet/minecraft/command/argument/IdentifierArgumentType;UNKNOWN_ADVANCEMENT_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_9945
Lnet/minecraft/class_2232;field_9945:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
official b
Lfu;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
UNKNOWN_RECIPE_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_RECIPE_EXCEPTION- Mappings:
Namespace Name Mixin selector named UNKNOWN_RECIPE_EXCEPTION
Lnet/minecraft/command/argument/IdentifierArgumentType;UNKNOWN_RECIPE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_9947
Lnet/minecraft/class_2232;field_9947:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
official c
Lfu;c:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
-
Constructor Details
-
IdentifierArgumentType
public IdentifierArgumentType()
-
-
Method Details
-
identifier
- Mappings:
Namespace Name Mixin selector named identifier
Lnet/minecraft/command/argument/IdentifierArgumentType;identifier()Lnet/minecraft/command/argument/IdentifierArgumentType;
intermediary method_9441
Lnet/minecraft/class_2232;method_9441()Lnet/minecraft/class_2232;
official a
Lfu;a()Lfu;
-
getAdvancementArgument
public static AdvancementEntry getAdvancementArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector named getAdvancementArgument
Lnet/minecraft/command/argument/IdentifierArgumentType;getAdvancementArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/advancement/AdvancementEntry;
intermediary method_9439
Lnet/minecraft/class_2232;method_9439(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_8779;
official a
Lfu;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lag;
-
getRecipeArgument
public static RecipeEntry<?> getRecipeArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector named getRecipeArgument
Lnet/minecraft/command/argument/IdentifierArgumentType;getRecipeArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/recipe/RecipeEntry;
intermediary method_9442
Lnet/minecraft/class_2232;method_9442(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_8786;
official b
Lfu;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lczb;
-
getIdentifier
public static Identifier getIdentifier(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) - Mappings:
Namespace Name Mixin selector named getIdentifier
Lnet/minecraft/command/argument/IdentifierArgumentType;getIdentifier(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/util/Identifier;
intermediary method_9443
Lnet/minecraft/class_2232;method_9443(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2960;
official c
Lfu;c(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lakr;
-
parse
public Identifier parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<Identifier>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector named parse
Lnet/minecraft/command/argument/IdentifierArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/util/Identifier;
intermediary method_9446
Lnet/minecraft/class_2232;method_9446(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2960;
official a
Lfu;a(Lcom/mojang/brigadier/StringReader;)Lakr;
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<Identifier>
-