Package net.minecraft.server.commands
Class TagCommand
java.lang.Object
net.minecraft.server.commands.TagCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
addTag
(CommandSourceStack pSource, Collection<? extends Entity> pEntities, String pTagName) private static Collection
<String> getTags
(Collection<? extends Entity> pEntities) Gets all tags that are present on at least one of the given entities.private static int
listTags
(CommandSourceStack pSource, Collection<? extends Entity> pEntities) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_138837_) private static int
removeTag
(CommandSourceStack pSource, Collection<? extends Entity> pEntities, String pTagName)
-
Field Details
-
ERROR_ADD_FAILED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_ADD_FAILED -
ERROR_REMOVE_FAILED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_REMOVE_FAILED
-
-
Constructor Details
-
TagCommand
public TagCommand()
-
-
Method Details
-
register
-
getTags
Gets all tags that are present on at least one of the given entities. -
addTag
private static int addTag(CommandSourceStack pSource, Collection<? extends Entity> pEntities, String pTagName) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
removeTag
private static int removeTag(CommandSourceStack pSource, Collection<? extends Entity> pEntities, String pTagName) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
listTags
-