Class TagCommand
java.lang.Object
net.minecraft.server.commands.TagCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final SimpleCommandExceptionTypeprivate static final SimpleCommandExceptionType -
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(CommandDispatcher<CommandSourceStack> dispatcher) private static intremoveTag(CommandSourceStack source, Collection<? extends Entity> targets, String name)
-
Field Details
-
ERROR_ADD_FAILED
-
ERROR_REMOVE_FAILED
-
-
Constructor Details
-
TagCommand
public TagCommand()
-
-
Method Details
-
register
-
getTags
-
addTag
private static int addTag(CommandSourceStack source, Collection<? extends Entity> targets, String name) throws CommandSyntaxException - Throws:
CommandSyntaxException
-
removeTag
private static int removeTag(CommandSourceStack source, Collection<? extends Entity> targets, String name) throws CommandSyntaxException - Throws:
CommandSyntaxException
-
listTags
-