public class EntitySummonArgument extends java.lang.Object implements com.mojang.brigadier.arguments.ArgumentType<ResourceLocation>
Modifier and Type | Field and Description |
---|---|
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
ENTITY_UNKNOWN_TYPE |
private static java.util.Collection<java.lang.String> |
EXAMPLES |
Constructor and Description |
---|
EntitySummonArgument() |
Modifier and Type | Method and Description |
---|---|
private static ResourceLocation |
checkIfEntityExists(ResourceLocation id) |
static EntitySummonArgument |
entitySummon() |
static ResourceLocation |
getEntityId(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String name) |
java.util.Collection<java.lang.String> |
getExamples() |
ResourceLocation |
parse(com.mojang.brigadier.StringReader p_parse_1_) |
private static final java.util.Collection<java.lang.String> EXAMPLES
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ENTITY_UNKNOWN_TYPE
public static EntitySummonArgument entitySummon()
public static ResourceLocation getEntityId(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static ResourceLocation checkIfEntityExists(ResourceLocation id) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public ResourceLocation parse(com.mojang.brigadier.StringReader p_parse_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<ResourceLocation>
com.mojang.brigadier.exceptions.CommandSyntaxException
public java.util.Collection<java.lang.String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<ResourceLocation>