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>
-
Field Summary
Fields Modifier and Type Field Description private static Collection<String>
EXAMPLES
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
field_21506
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
field_24267
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
UNKNOWN_ADVANCEMENT_EXCEPTION
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
UNKNOWN_RECIPE_EXCEPTION
-
Constructor Summary
Constructors Constructor Description IdentifierArgumentType()
-
Method Summary
Modifier and Type Method Description static Advancement
getAdvancementArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)
Collection<String>
getExamples()
static Identifier
getIdentifier(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
static Recipe<?>
getRecipeArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)
static IdentifierArgumentType
identifier()
static LootCondition
method_23727(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)
static EntityAttribute
method_27575(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)
Identifier
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
-
UNKNOWN_ADVANCEMENT_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_ADVANCEMENT_EXCEPTION -
UNKNOWN_RECIPE_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_RECIPE_EXCEPTION -
field_21506
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType field_21506 -
field_24267
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType field_24267
-
-
Constructor Details
-
IdentifierArgumentType
public IdentifierArgumentType()
-
-
Method Details
-
identifier
-
getAdvancementArgument
public static Advancement getAdvancementArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string) -
getRecipeArgument
public static Recipe<?> getRecipeArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string) -
method_23727
public static LootCondition method_23727(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string) -
method_27575
public static EntityAttribute method_27575(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string) -
getIdentifier
public static Identifier getIdentifier(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) -
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
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<Identifier>
-