public void sendEvent(Event toSend) { try { if (connectionState) packetBuffer.sendEvent(toSend); } catch (PacketFailureException e) { disconnected(); } }
public Event readEvent() { return packetBuffer.readNextEvent(); }
public boolean hasEvent() { return packetBuffer.hasNextEvent(); }