Package com.velocitypowered.api.event
Class ResultedEvent.ComponentResult
java.lang.Object
com.velocitypowered.api.event.ResultedEvent.ComponentResult
- All Implemented Interfaces:
ResultedEvent.Result
- Enclosing interface:
- ResultedEvent<R extends ResultedEvent.Result>
public static final class ResultedEvent.ComponentResult
extends Object
implements ResultedEvent.Result
Represents an "allowed/denied" result with a reason allowed for denial.
-
Constructor Summary
ModifierConstructorDescriptionprotected
ComponentResult
(boolean status, @Nullable Component reason) -
Method Summary
-
Constructor Details
-
ComponentResult
-
-
Method Details
-
isAllowed
public boolean isAllowed()Description copied from interface:ResultedEvent.Result
Returns whether or not the event is allowed to proceed. Plugins may choose to skip denied events, and the proxy will respect the result of this method.- Specified by:
isAllowed
in interfaceResultedEvent.Result
- Returns:
- whether or not the event is allowed to proceed
-
getReasonComponent
-
toString
-
allowed
-
denied
-