public class IdentifierArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<Identifier>
Modifier and Type | Field and 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 and Description |
---|
IdentifierArgumentType() |
Modifier and Type | Method and 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) |
private static final Collection<String> EXAMPLES
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_ADVANCEMENT_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_RECIPE_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType field_21506
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType field_24267
public static IdentifierArgumentType identifier()
public static Advancement getAdvancementArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)
public static Recipe<?> getRecipeArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)
public static LootCondition method_23727(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)
public static EntityAttribute method_27575(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)
public static Identifier getIdentifier(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public Identifier parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<Identifier>
com.mojang.brigadier.exceptions.CommandSyntaxException
public Collection<String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<Identifier>