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 official ej
intermediary net/minecraft/class_2232
named net/minecraft/command/argument/IdentifierArgumentType
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Collection<String>
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Advancement
getAdvancementArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName) static EntityAttribute
getAttributeArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName) getBiomeEntry
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName) static IdentifierArgumentType.RegistryEntry<ConfiguredFeature<?,
?>> getConfiguredFeatureEntry
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName) private static <T> IdentifierArgumentType.RegistryEntry<T>
getFromRegistry
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName, RegistryKey<Registry<T>> registryRef, com.mojang.brigadier.exceptions.DynamicCommandExceptionType exceptionType) static Identifier
getIdentifier
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static LootFunction
getItemModifierArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName) static LootCondition
getPredicateArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName) static Recipe<?>
getRecipeArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName) getStructureFeatureEntry
(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
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector official a
Lej;a:Ljava/util/Collection;
intermediary field_9946
Lnet/minecraft/class_2232;field_9946:Ljava/util/Collection;
named EXAMPLES
Lnet/minecraft/command/argument/IdentifierArgumentType;EXAMPLES:Ljava/util/Collection;
-
UNKNOWN_ADVANCEMENT_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_ADVANCEMENT_EXCEPTION- Mappings:
Namespace Name Mixin selector official b
Lej;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_9945
Lnet/minecraft/class_2232;field_9945:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named UNKNOWN_ADVANCEMENT_EXCEPTION
Lnet/minecraft/command/argument/IdentifierArgumentType;UNKNOWN_ADVANCEMENT_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
UNKNOWN_RECIPE_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_RECIPE_EXCEPTION- Mappings:
Namespace Name Mixin selector official c
Lej;c:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_9947
Lnet/minecraft/class_2232;field_9947:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named UNKNOWN_RECIPE_EXCEPTION
Lnet/minecraft/command/argument/IdentifierArgumentType;UNKNOWN_RECIPE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
UNKNOWN_PREDICATE_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_PREDICATE_EXCEPTION- Mappings:
Namespace Name Mixin selector official d
Lej;d:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_21506
Lnet/minecraft/class_2232;field_21506:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named UNKNOWN_PREDICATE_EXCEPTION
Lnet/minecraft/command/argument/IdentifierArgumentType;UNKNOWN_PREDICATE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
UNKNOWN_ATTRIBUTE_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_ATTRIBUTE_EXCEPTION- Mappings:
Namespace Name Mixin selector official e
Lej;e:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_24267
Lnet/minecraft/class_2232;field_24267:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named UNKNOWN_ATTRIBUTE_EXCEPTION
Lnet/minecraft/command/argument/IdentifierArgumentType;UNKNOWN_ATTRIBUTE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
UNKNOWN_ITEM_MODIFIER_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_ITEM_MODIFIER_EXCEPTION- Mappings:
Namespace Name Mixin selector official f
Lej;f:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_28002
Lnet/minecraft/class_2232;field_28002:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named UNKNOWN_ITEM_MODIFIER_EXCEPTION
Lnet/minecraft/command/argument/IdentifierArgumentType;UNKNOWN_ITEM_MODIFIER_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
UNKNOWN_BIOME_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_BIOME_EXCEPTION- Mappings:
Namespace Name Mixin selector official g
Lej;g:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_36370
Lnet/minecraft/class_2232;field_36370:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named UNKNOWN_BIOME_EXCEPTION
Lnet/minecraft/command/argument/IdentifierArgumentType;UNKNOWN_BIOME_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
UNKNOWN_FEATURE_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_FEATURE_EXCEPTION- Mappings:
Namespace Name Mixin selector official h
Lej;h:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_36371
Lnet/minecraft/class_2232;field_36371:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named UNKNOWN_FEATURE_EXCEPTION
Lnet/minecraft/command/argument/IdentifierArgumentType;UNKNOWN_FEATURE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
UNKNOWN_STRUCTURE_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_STRUCTURE_EXCEPTION- Mappings:
Namespace Name Mixin selector official i
Lej;i:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_36372
Lnet/minecraft/class_2232;field_36372:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named UNKNOWN_STRUCTURE_EXCEPTION
Lnet/minecraft/command/argument/IdentifierArgumentType;UNKNOWN_STRUCTURE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
-
Constructor Details
-
IdentifierArgumentType
public IdentifierArgumentType()
-
-
Method Details
-
identifier
- Mappings:
Namespace Name Mixin selector official a
Lej;a()Lej;
intermediary method_9441
Lnet/minecraft/class_2232;method_9441()Lnet/minecraft/class_2232;
named identifier
Lnet/minecraft/command/argument/IdentifierArgumentType;identifier()Lnet/minecraft/command/argument/IdentifierArgumentType;
-
getAdvancementArgument
public static Advancement 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 official a
Lej;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Laf;
intermediary method_9439
Lnet/minecraft/class_2232;method_9439(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_161;
named getAdvancementArgument
Lnet/minecraft/command/argument/IdentifierArgumentType;getAdvancementArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/advancement/Advancement;
-
getRecipeArgument
public static Recipe<?> 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 official b
Lej;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lbxb;
intermediary method_9442
Lnet/minecraft/class_2232;method_9442(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_1860;
named getRecipeArgument
Lnet/minecraft/command/argument/IdentifierArgumentType;getRecipeArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/recipe/Recipe;
-
getPredicateArgument
public static LootCondition getPredicateArgument(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 official c
Lej;c(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ldmy;
intermediary method_23727
Lnet/minecraft/class_2232;method_23727(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_5341;
named getPredicateArgument
Lnet/minecraft/command/argument/IdentifierArgumentType;getPredicateArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/loot/condition/LootCondition;
-
getItemModifierArgument
public static LootFunction getItemModifierArgument(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 official d
Lej;d(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ldlq;
intermediary method_32688
Lnet/minecraft/class_2232;method_32688(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_117;
named getItemModifierArgument
Lnet/minecraft/command/argument/IdentifierArgumentType;getItemModifierArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/loot/function/LootFunction;
-
getAttributeArgument
public static EntityAttribute getAttributeArgument(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 official e
Lej;e(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Layi;
intermediary method_27575
Lnet/minecraft/class_2232;method_27575(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_1320;
named getAttributeArgument
Lnet/minecraft/command/argument/IdentifierArgumentType;getAttributeArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/entity/attribute/EntityAttribute;
-
getFromRegistry
private static <T> IdentifierArgumentType.RegistryEntry<T> getFromRegistry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName, RegistryKey<Registry<T>> registryRef, com.mojang.brigadier.exceptions.DynamicCommandExceptionType exceptionType) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lej;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lyk;Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;)Lej$a;
intermediary method_40042
Lnet/minecraft/class_2232;method_40042(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/class_5321;Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;)Lnet/minecraft/class_2232$class_6855;
named getFromRegistry
Lnet/minecraft/command/argument/IdentifierArgumentType;getFromRegistry(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/util/registry/RegistryKey;Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;)Lnet/minecraft/command/argument/IdentifierArgumentType$RegistryEntry;
-
getBiomeEntry
public static IdentifierArgumentType.RegistryEntry<Biome> getBiomeEntry(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 official f
Lej;f(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lej$a;
intermediary method_40047
Lnet/minecraft/class_2232;method_40047(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2232$class_6855;
named getBiomeEntry
Lnet/minecraft/command/argument/IdentifierArgumentType;getBiomeEntry(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/command/argument/IdentifierArgumentType$RegistryEntry;
-
getConfiguredFeatureEntry
public static IdentifierArgumentType.RegistryEntry<ConfiguredFeature<?,?>> getConfiguredFeatureEntry(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 official g
Lej;g(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lej$a;
intermediary method_40048
Lnet/minecraft/class_2232;method_40048(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2232$class_6855;
named getConfiguredFeatureEntry
Lnet/minecraft/command/argument/IdentifierArgumentType;getConfiguredFeatureEntry(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/command/argument/IdentifierArgumentType$RegistryEntry;
-
getStructureFeatureEntry
public static IdentifierArgumentType.RegistryEntry<StructureFeature<?>> getStructureFeatureEntry(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 official h
Lej;h(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lej$a;
intermediary method_40049
Lnet/minecraft/class_2232;method_40049(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2232$class_6855;
named getStructureFeatureEntry
Lnet/minecraft/command/argument/IdentifierArgumentType;getStructureFeatureEntry(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/command/argument/IdentifierArgumentType$RegistryEntry;
-
getIdentifier
public static Identifier getIdentifier(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) - Mappings:
Namespace Name Mixin selector official i
Lej;i(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lyl;
intermediary method_9443
Lnet/minecraft/class_2232;method_9443(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2960;
named getIdentifier
Lnet/minecraft/command/argument/IdentifierArgumentType;getIdentifier(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/util/Identifier;
-
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 official a
Lej;a(Lcom/mojang/brigadier/StringReader;)Lyl;
intermediary method_9446
Lnet/minecraft/class_2232;method_9446(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2960;
named parse
Lnet/minecraft/command/argument/IdentifierArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/util/Identifier;
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<Identifier>
-