Class Event<T>

java.lang.Object
java.util.EventObject
org.rspeer.event.Event<T>
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BackpackLoadoutEvent, CommunicationEvent, DynamicObjectEvent, EquipmentLoadoutEvent, FpsEvent, GameEvent, LogEvent, LoginResponseEvent, ProxyConnectEvent, RandomPacketEvent, ScriptConfigEvent, ScriptSelectedEvent, ScriptStateEvent, WorldMapWalkEvent

public abstract class Event<T> extends EventObject
See Also:
  • Constructor Details

    • 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 Details

    • getSource

      public T getSource()
      Overrides:
      getSource in class EventObject
    • isConsumed

      public boolean isConsumed()
    • consume

      public void consume()