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

java.lang.Object
io.github.djtpj.authenticator.Authenticator<T>
Type Parameters:
T - the Event to Authenticate
Direct Known Subclasses:
BlockBreakAuthenticator, EntityAuthenticator, EntityTargetAuthenticator, InventoryInteractionAuthenticator, PlayerAuthenticator

public abstract class Authenticator<T extends org.bukkit.event.Event> extends Object
An Authenticator is a reusable way to check if an SimpleTrait should run on an event
See Also:
  • Constructor Details

    • Authenticator

      protected Authenticator(Trait associatedTrait)
      Parameters:
      associatedTrait - the ability to associate with the Authenticator
  • Method Details

    • authenticate

      public abstract boolean authenticate(T event)
      Verifies weather a trait should run on an event
      Parameters:
      event - The event to authenticate
      Returns:
      whether a trait should run on this event