addHandler

Adds an event handler for the specified event type.

Return

This builder for method chaining

Parameters

eventClass

The class of events to handle

handler

The handler for the events


Adds an event handler for the specified event type using reified generics.

Return

This builder for method chaining

Parameters

handler

The handler for the events