Class TagCommand
java.lang.Object
net.minecraft.server.commands.TagCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final CommandResponseTracker.MessagesWithArg<Entity, String> private static final CommandResponseTracker.MessagesWithArg<Entity, Set<String>> private static final CommandResponseTracker.Messages<Entity> private static final CommandResponseTracker.MessagesWithArg<Entity, String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intaddTag(CommandSourceStack source, Collection<? extends Entity> targets, String name) private static Collection<String> getTags(Collection<? extends Entity> entities) private static intlistTags(CommandSourceStack source, Collection<? extends Entity> targets) static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher) private static intremoveTag(CommandSourceStack source, Collection<? extends Entity> targets, String name)
-
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 -
RESPONSE_NO_TAGS
-
RESPONSE_REMOVE
-
RESPONSE_ADD
-
RESPONSE_LIST
-
-
Constructor Details
-
TagCommand
public TagCommand()
-
-
Method Details
-
register
-
getTags
-
addTag
private static int addTag(CommandSourceStack source, Collection<? extends Entity> targets, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
removeTag
private static int removeTag(CommandSourceStack source, Collection<? extends Entity> targets, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
listTags
private static int listTags(CommandSourceStack source, Collection<? extends Entity> targets) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-