public class ResourceLocationArgument extends java.lang.Object implements com.mojang.brigadier.arguments.ArgumentType<ResourceLocation>
Modifier and Type | Field and Description |
---|---|
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
ADVANCEMENT_NOT_FOUND |
private static java.util.Collection<java.lang.String> |
EXAMPLES |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
field_228258_d_ |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
RECIPE_NOT_FOUND |
Constructor and Description |
---|
ResourceLocationArgument() |
Modifier and Type | Method and Description |
---|---|
static ILootCondition |
func_228259_c_(com.mojang.brigadier.context.CommandContext<CommandSource> p_228259_0_,
java.lang.String p_228259_1_) |
static Advancement |
getAdvancement(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String name) |
java.util.Collection<java.lang.String> |
getExamples() |
static IRecipe<?> |
getRecipe(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String name) |
static ResourceLocation |
getResourceLocation(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String name) |
ResourceLocation |
parse(com.mojang.brigadier.StringReader p_parse_1_) |
static ResourceLocationArgument |
resourceLocation() |
private static final java.util.Collection<java.lang.String> EXAMPLES
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ADVANCEMENT_NOT_FOUND
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType RECIPE_NOT_FOUND
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType field_228258_d_
public static ResourceLocationArgument resourceLocation()
public static Advancement getAdvancement(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static IRecipe<?> getRecipe(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static ILootCondition func_228259_c_(com.mojang.brigadier.context.CommandContext<CommandSource> p_228259_0_, java.lang.String p_228259_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static ResourceLocation getResourceLocation(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String name)
public ResourceLocation parse(com.mojang.brigadier.StringReader p_parse_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<ResourceLocation>
com.mojang.brigadier.exceptions.CommandSyntaxException
public java.util.Collection<java.lang.String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<ResourceLocation>