Package net.minecraft.commands.arguments
Class EntitySummonArgument
java.lang.Object
net.minecraft.commands.arguments.EntitySummonArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<ResourceLocation>
public class EntitySummonArgument
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<ResourceLocation>
-
Field Summary
Modifier and TypeFieldDescriptionstatic com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static Collection<String>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceLocation
getSummonableEntity(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_93339_, String p_93340_)
static EntitySummonArgument
id()
parse(com.mojang.brigadier.StringReader p_93337_)
private static ResourceLocation
verifyCanSummon(ResourceLocation p_93344_)
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
-
ERROR_UNKNOWN_ENTITY
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_ENTITY
-
-
Constructor Details
-
EntitySummonArgument
public EntitySummonArgument()
-
-
Method Details
-
id
-
getSummonableEntity
public static ResourceLocation getSummonableEntity(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_93339_, String p_93340_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
verifyCanSummon
private static ResourceLocation verifyCanSummon(ResourceLocation p_93344_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
parse
public ResourceLocation parse(com.mojang.brigadier.StringReader p_93337_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<ResourceLocation>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<ResourceLocation>
-