public DrawMouse(Bot bot) {
client = bot.getClient();
}
public void onRepaint(final Graphics render) {
Mouse mouse = client.getMouse();
if (mouse != null) {
int mouse_x = mouse.getX();
int mouse_y = mouse.getY();
int mouse_press_x = mouse.getPressX();
int mouse_press_y = mouse.getPressY();
long mouse_press_time = mouse.getPressTime();
render.setColor(Color.GREEN);
render.drawLine(mouse_x - 5, mouse_y - 5, mouse_x + 5, mouse_y + 5);
render.drawLine(mouse_x + 5, mouse_y - 5, mouse_x - 5, mouse_y + 5);
if (System.currentTimeMillis() - mouse_press_time < 1000) {
render.setColor(Color.RED);