public class EntitySummonArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<Identifier>
Modifier and Type | Field and Description |
---|---|
private static Collection<String> |
EXAMPLES |
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
NOT_FOUND_EXCEPTION |
Constructor and Description |
---|
EntitySummonArgumentType() |
Modifier and Type | Method and 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) |
private static final Collection<String> EXAMPLES
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType NOT_FOUND_EXCEPTION
public static EntitySummonArgumentType entitySummon()
public static Identifier getEntitySummon(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
private static Identifier validate(Identifier identifier) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public Identifier parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<Identifier>
com.mojang.brigadier.exceptions.CommandSyntaxException
public Collection<String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<Identifier>