Package io.github.djtpj.authenticator
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
An Authenticator is a reusable way to check if an SimpleTrait should run on an event
- See Also:
-
Event
SimpleTrait
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
authenticate
(T event) Verifies weather a trait should run on an event
-
Constructor Details
-
Authenticator
- Parameters:
associatedTrait
- the ability to associate with the Authenticator
-
-
Method Details
-
authenticate
Verifies weather a trait should run on an event- Parameters:
event
- The event to authenticate- Returns:
- whether a trait should run on this event
-