Package net.minecraft.command.arguments
Class EntitySummonArgument
- java.lang.Object
-
- net.minecraft.command.arguments.EntitySummonArgument
-
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<ResourceLocation>
public class EntitySummonArgument extends java.lang.Object implements com.mojang.brigadier.arguments.ArgumentType<ResourceLocation>
-
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_UNKNOWN_ENTITY
private static java.util.Collection<java.lang.String>
EXAMPLES
-
Constructor Summary
Constructors Constructor Description EntitySummonArgument()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.String>
getExamples()
static ResourceLocation
getSummonableEntity(com.mojang.brigadier.context.CommandContext<CommandSource> p_211368_0_, java.lang.String p_211368_1_)
static EntitySummonArgument
id()
ResourceLocation
parse(com.mojang.brigadier.StringReader p_parse_1_)
private static ResourceLocation
verifyCanSummon(ResourceLocation p_211365_0_)
-
-
-
Method Detail
-
id
public static EntitySummonArgument id()
-
getSummonableEntity
public static ResourceLocation getSummonableEntity(com.mojang.brigadier.context.CommandContext<CommandSource> p_211368_0_, java.lang.String p_211368_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
verifyCanSummon
private static ResourceLocation verifyCanSummon(ResourceLocation p_211365_0_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
parse
public ResourceLocation parse(com.mojang.brigadier.StringReader p_parse_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<ResourceLocation>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExamples
public java.util.Collection<java.lang.String> getExamples()
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<ResourceLocation>
-
-