Package org.rspeer.event
Class Event<T>
- java.lang.Object
-
- java.util.EventObject
-
- org.rspeer.event.Event<T>
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BackpackLoadoutEvent
,CommunicationEvent
,ConfigPanelEvent
,DynamicObjectEvent
,EquipmentLoadoutEvent
,FpsEvent
,GameEvent
,HouseProfileEvent
,LocalStorageEvent
,LogEvent
,LoginResponseEvent
,ProxyConnectEvent
,RandomPacketEvent
,ScriptConfigEvent
,ScriptSelectedEvent
,ScriptStateEvent
,WorldMapWalkEvent
public abstract class Event<T> extends EventObject
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
consume()
T
getSource()
boolean
isConsumed()
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Constructor Detail
-
Event
public Event(T source)
Constructs a prototypical Event.- Parameters:
source
- The object on which the Event initially occurred.- Throws:
IllegalArgumentException
- if source is null.
-
-
Method Detail
-
getSource
public T getSource()
- Overrides:
getSource
in classEventObject
-
isConsumed
public boolean isConsumed()
-
consume
public void consume()
-
-