Package net.orbyfied.j8.event
Class BusHandler
java.lang.Object
net.orbyfied.j8.event.BusHandler
Represents a handler bound to a
specific event bus and registered
listener.
It delegates the events to another
handler if available.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionBusHandler(EventBus bus, RegisteredListener listener, HandlerProvider<?> provider) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()getBus()<T> TgetProperty(Object key) intvoidHandles the event.booleanbooleanvoidregister()Registers it to it's assigned pipeline.setDelegate(Handler<Object> handler) voidsetStatus(int s) withProperty(Object key, Object val)
-
Field Details
-
STATUS_DISABLED
public static final int STATUS_DISABLED- See Also:
-
STATUS_DELEGATE
public static final int STATUS_DELEGATE- See Also:
-
STATUS_ENABLED
public static final int STATUS_ENABLED- See Also:
-
-
Constructor Details
-
BusHandler
-
-
Method Details
-
handle
Description copied from interface:HandlerHandles the event. -
register
public void register()Registers it to it's assigned pipeline. -
destroy
public void destroy() -
withProperty
-
getProperty
-
isEnabled
public boolean isEnabled() -
isRegistered
public boolean isRegistered() -
getStatus
public int getStatus() -
setStatus
public void setStatus(int s) -
getDelegate
-
setDelegate
-
getProvider
-
getBus
-
getListener
-
getProperties
-