Class ResultedEvent.GenericResult
java.lang.Object
me.internalizable.numdrassl.api.event.ResultedEvent.GenericResult
- All Implemented Interfaces:
ResultedEvent.Result
- Enclosing interface:
ResultedEvent<R extends ResultedEvent.Result>
public static final class ResultedEvent.GenericResult
extends Object
implements ResultedEvent.Result
A simple allowed/denied result.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ResultedEvent.GenericResultallowed()Get the allowed result.static ResultedEvent.GenericResultdenied()Get the denied result.booleanCheck if this result allows the action to proceed.
-
Method Details
-
isAllowed
public boolean isAllowed()Description copied from interface:ResultedEvent.ResultCheck if this result allows the action to proceed.- Specified by:
isAllowedin interfaceResultedEvent.Result- Returns:
- true if allowed
-
allowed
Get the allowed result.- Returns:
- the allowed result
-
denied
Get the denied result.- Returns:
- the denied result
-