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.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intaddTag(CommandSourceStack p_138849_, Collection<? extends Entity> p_138850_, String p_138851_) private static Collection<String>getTags(Collection<? extends Entity> p_138853_) private static intlistTags(CommandSourceStack p_138846_, Collection<? extends Entity> p_138847_) static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_138837_) private static intremoveTag(CommandSourceStack p_138857_, Collection<? extends Entity> p_138858_, String p_138859_)
-
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
-
addTag
private static int addTag(CommandSourceStack p_138849_, Collection<? extends Entity> p_138850_, String p_138851_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
removeTag
private static int removeTag(CommandSourceStack p_138857_, Collection<? extends Entity> p_138858_, String p_138859_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
listTags
-