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,PaintTimelineEvent,ProxyConnectEvent,RandomPacketEvent,ScriptConfigEvent,ScriptSelectedEvent,ScriptStateEvent,WorldMapWalkEvent,WorldPreferenceProfileEvent
public abstract class Event<T> extends EventObject
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsume()TgetSource()booleanisConsumed()-
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:
getSourcein classEventObject
-
isConsumed
public boolean isConsumed()
-
consume
public void consume()
-
-