public void startTickDown(TickActer E) { if (E.nextAct() <= System.currentTimeMillis()) { CMClass.threadPool.execute(E); return; } tickActQueue.add(E); if (tickActQueue.first() == E) tickActThread.interrupt(); }
public boolean deleteTick(TickActer E) { boolean interruptLater = (tickActQueue.first() == E); boolean found = tickActQueue.remove(E); if (interruptLater && found) tickActThread.interrupt(); return found; }