EventManager implements Tickable { public void beginEvent(AbstractEvent event) { if (tickableEvents.contains(event)) { if (!duplicateExceptions(event)) { return; } } if (event.needsTick()) { tickableEvents.add(event); } if (event.displayable()) { if (event.getDuration() == -1) { statusHandler.addStatus(event.getName(), event.getLevel()); } else { statusHandler.addStatus(event.getName(), event.getLevel(), event.getDuration()); } } event.begin(); }  static EventManager getInstance(); void beginEvent(AbstractEvent event); boolean toggleRanomEvents(); @Override void tick();  }
@Test public void beginEvent() { SpeedChangeEvent event = new SpeedChangeEvent(2, 1000); eventManager.beginEvent(event); }