Class Context<T extends org.bukkit.event.Event>

java.lang.Object
com.github.darksoulq.abyssallib.server.event.context.Context<T>
Type Parameters:
T - The type of the event this context holds.
Direct Known Subclasses:
AnvilContext

public abstract class Context<T extends org.bukkit.event.Event> extends Object
Represents a generic context for an event. This is an abstract base class used for storing and working with events in a more structured way.
  • Field Details

    • event

      public T extends org.bukkit.event.Event event
      The event associated with this context.
  • Constructor Details

    • Context

      public Context(T event)
      Constructs a new Context with the given event.
      Parameters:
      event - The event to associate with this context.