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>EXAMPLESprivate static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeUNKNOWN_ADVANCEMENT_EXCEPTIONprivate static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeUNKNOWN_ATTRIBUTE_EXCEPTIONprivate static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeUNKNOWN_ITEM_MODIFIER_EXCEPTIONprivate static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeUNKNOWN_PREDICATE_EXCEPTIONprivate static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeUNKNOWN_RECIPE_EXCEPTION -
Constructor Summary
Constructors Constructor Description IdentifierArgumentType() -
Method Summary
Modifier and Type Method Description static AdvancementgetAdvancementArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName)static EntityAttributegetAttributeArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName)Collection<String>getExamples()static IdentifiergetIdentifier(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)static LootFunctiongetItemModifierArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName)static LootConditiongetPredicateArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName)static Recipe<?>getRecipeArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName)static IdentifierArgumentTypeidentifier()Identifierparse(com.mojang.brigadier.StringReader stringReader)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 -
UNKNOWN_PREDICATE_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_PREDICATE_EXCEPTION -
UNKNOWN_ATTRIBUTE_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_ATTRIBUTE_EXCEPTION -
UNKNOWN_ITEM_MODIFIER_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_ITEM_MODIFIER_EXCEPTION
-
-
Constructor Details
-
IdentifierArgumentType
public IdentifierArgumentType()
-
-
Method Details
-
identifier
-
getAdvancementArgument
public static Advancement getAdvancementArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName) -
getRecipeArgument
public static Recipe<?> getRecipeArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName) -
getPredicateArgument
public static LootCondition getPredicateArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName) -
getItemModifierArgument
public static LootFunction getItemModifierArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName) -
getAttributeArgument
public static EntityAttribute getAttributeArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName) -
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:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<Identifier>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<Identifier>
-