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>
EXAMPLES
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
NOT_FOUND_EXCEPTION
-
Constructor Summary
Constructors Constructor Description EntitySummonArgumentType()
-
Method Summary
Modifier and Type Method Description static EntitySummonArgumentType
entitySummon()
static Identifier
getEntitySummon(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
Collection<String>
getExamples()
Identifier
parse(com.mojang.brigadier.StringReader stringReader)
private static Identifier
validate(Identifier identifier)
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
-
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:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<Identifier>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<Identifier>
-