Package net.minecraft.command.argument
Class EntitySummonArgumentType
java.lang.Object
net.minecraft.command.argument.EntitySummonArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Identifier>
public class EntitySummonArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<Identifier>
-
Field Summary
Fields Modifier and Type Field Description private static Collection<String>EXAMPLESstatic com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeNOT_FOUND_EXCEPTION -
Constructor Summary
Constructors Constructor Description EntitySummonArgumentType() -
Method Summary
Modifier and Type Method Description static EntitySummonArgumentTypeentitySummon()static IdentifiergetEntitySummon(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)Collection<String>getExamples()Identifierparse(com.mojang.brigadier.StringReader stringReader)private static Identifiervalidate(Identifier identifier)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
-
NOT_FOUND_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType NOT_FOUND_EXCEPTION
-
-
Constructor Details
-
EntitySummonArgumentType
public EntitySummonArgumentType()
-
-
Method Details
-
entitySummon
-
getEntitySummon
public static Identifier getEntitySummon(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) -
validate
private static Identifier validate(Identifier identifier) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
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>
-