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 source, Collection<? extends Entity> entities, String tagName) private static Collection
<String> getTags
(Collection<? extends Entity> entities) Gets all tags that are present on at least one of the given entities.private static int
listTags
(CommandSourceStack source, Collection<? extends Entity> entities) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher) private static int
removeTag
(CommandSourceStack source, Collection<? extends Entity> entities, String tagName)
-
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 source, Collection<? extends Entity> entities, String tagName) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
removeTag
private static int removeTag(CommandSourceStack source, Collection<? extends Entity> entities, String tagName) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
listTags
-