Package net.minecraft.command.arguments
Class ResourceLocationArgument
- java.lang.Object
-
- net.minecraft.command.arguments.ResourceLocationArgument
-
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<ResourceLocation>
public class ResourceLocationArgument extends java.lang.Object implements com.mojang.brigadier.arguments.ArgumentType<ResourceLocation>
-
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_UNKNOWN_ADVANCEMENT
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_UNKNOWN_ATTRIBUTE
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_UNKNOWN_PREDICATE
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_UNKNOWN_RECIPE
private static java.util.Collection<java.lang.String>
EXAMPLES
-
Constructor Summary
Constructors Constructor Description ResourceLocationArgument()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Advancement
getAdvancement(com.mojang.brigadier.context.CommandContext<CommandSource> p_197198_0_, java.lang.String p_197198_1_)
static Attribute
getAttribute(com.mojang.brigadier.context.CommandContext<CommandSource> p_239094_0_, java.lang.String p_239094_1_)
java.util.Collection<java.lang.String>
getExamples()
static ResourceLocation
getId(com.mojang.brigadier.context.CommandContext<CommandSource> p_197195_0_, java.lang.String p_197195_1_)
static ILootCondition
getPredicate(com.mojang.brigadier.context.CommandContext<CommandSource> p_228259_0_, java.lang.String p_228259_1_)
static IRecipe<?>
getRecipe(com.mojang.brigadier.context.CommandContext<CommandSource> p_197194_0_, java.lang.String p_197194_1_)
static ResourceLocationArgument
id()
ResourceLocation
parse(com.mojang.brigadier.StringReader p_parse_1_)
-
-
-
Field Detail
-
EXAMPLES
private static final java.util.Collection<java.lang.String> EXAMPLES
-
ERROR_UNKNOWN_ADVANCEMENT
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_ADVANCEMENT
-
ERROR_UNKNOWN_RECIPE
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_RECIPE
-
ERROR_UNKNOWN_PREDICATE
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_PREDICATE
-
ERROR_UNKNOWN_ATTRIBUTE
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_ATTRIBUTE
-
-
Method Detail
-
id
public static ResourceLocationArgument id()
-
getAdvancement
public static Advancement getAdvancement(com.mojang.brigadier.context.CommandContext<CommandSource> p_197198_0_, java.lang.String p_197198_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getRecipe
public static IRecipe<?> getRecipe(com.mojang.brigadier.context.CommandContext<CommandSource> p_197194_0_, java.lang.String p_197194_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getPredicate
public static ILootCondition getPredicate(com.mojang.brigadier.context.CommandContext<CommandSource> p_228259_0_, java.lang.String p_228259_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getAttribute
public static Attribute getAttribute(com.mojang.brigadier.context.CommandContext<CommandSource> p_239094_0_, java.lang.String p_239094_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getId
public static ResourceLocation getId(com.mojang.brigadier.context.CommandContext<CommandSource> p_197195_0_, java.lang.String p_197195_1_)
-
parse
public ResourceLocation parse(com.mojang.brigadier.StringReader p_parse_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<ResourceLocation>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExamples
public java.util.Collection<java.lang.String> getExamples()
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<ResourceLocation>
-
-