Class Event

java.lang.Object
com.github.tadukoo.util.event.Event

public abstract class Event extends Object
Represents a generic Event that has happened and may need to be handled by various EventHandlers.
Version:
0.1-Alpha-SNAPSHOT
Author:
Logan Ferree (Tadukoo)
  • Field Details

    • type

      private final String type
      The type of Event
    • message

      private final String message
      The message for the Event
  • Constructor Details

    • Event

      public Event(String type, String message)
      Creates an Event for the given type with the given message.
      Parameters:
      type - The type of Event
      message - The message for the Event
  • Method Details

    • getType

      public String getType()
      Grabs the type of Event this represents.
      Returns:
      The type of Event this is
    • getMessage

      public String getMessage()
      Grabs the message describing this Event.
      Returns:
      The message for this Event