Package net.minecraft.commands.arguments
Class ResourceLocationArgument
java.lang.Object
net.minecraft.commands.arguments.ResourceLocationArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<ResourceLocation>
public class ResourceLocationArgument
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<ResourceLocation>
-
Field Summary
Modifier and TypeFieldDescriptionprivate static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static Collection<String>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Advancement
getAdvancement(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_106988_, String p_106989_)
static Attribute
getAttribute(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_107007_, String p_107008_)
static ResourceLocation
getId(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_107012_, String p_107013_)
static LootItemFunction
getItemModifier(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_171032_, String p_171033_)
static LootItemCondition
getPredicate(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_107002_, String p_107003_)
static Recipe<?>
getRecipe(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_106995_, String p_106996_)
static ResourceLocationArgument
id()
parse(com.mojang.brigadier.StringReader p_106986_)
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
-
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 -
ERROR_UNKNOWN_ITEM_MODIFIER
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_ITEM_MODIFIER
-
-
Constructor Details
-
ResourceLocationArgument
public ResourceLocationArgument()
-
-
Method Details
-
id
-
getAdvancement
public static Advancement getAdvancement(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_106988_, String p_106989_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getRecipe
public static Recipe<?> getRecipe(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_106995_, String p_106996_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getPredicate
public static LootItemCondition getPredicate(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_107002_, String p_107003_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getItemModifier
public static LootItemFunction getItemModifier(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_171032_, String p_171033_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getAttribute
public static Attribute getAttribute(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_107007_, String p_107008_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getId
public static ResourceLocation getId(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_107012_, String p_107013_) -
parse
public ResourceLocation parse(com.mojang.brigadier.StringReader p_106986_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<ResourceLocation>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<ResourceLocation>
-