All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.nadron.client.event.EventHandler Maven / Gradle / Ivy

Go to download

This is a client library for Nadron server https://github.com/menacher/java-game-server/tree/netty4/nadron. Java clients can use this program to connect and interact with nadron server.

There is a newer version: 0.5
Show newest version
package io.nadron.client.event;

/**
 * A handler which can handle a specific event. Implementations of this class
 * get attaches to the {@link EventDispatcher}.
 * 
 * @author Abraham Menacherry
 * 
 */
public interface EventHandler
{
	/**
	 * On event method which will be used to handle an incoming event dispatched
	 * to it by a {@link EventDispatcher}
	 * 
	 * @param event
	 */
	void onEvent(Event event);

	/**
	 * @return Returns the event type which is an integer. Using this event type
	 *         the event dispatcher can transmit matching events having the same
	 *         event type to this handler instance.
	 */
	int getEventType();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy