public static final class ResultedEvent.ComponentResult extends Object implements ResultedEvent.Result
Modifier | Constructor and Description |
---|---|
protected |
ComponentResult(boolean status,
@Nullable Component reason) |
Modifier and Type | Method and Description |
---|---|
static ResultedEvent.ComponentResult |
allowed() |
static ResultedEvent.ComponentResult |
denied(Component reason) |
Optional<Component> |
getReason() |
boolean |
isAllowed()
Returns whether or not the event is allowed to proceed.
|
String |
toString() |
protected ComponentResult(boolean status, @Nullable Component reason)
public boolean isAllowed()
ResultedEvent.Result
isAllowed
in interface ResultedEvent.Result
public static ResultedEvent.ComponentResult allowed()
public static ResultedEvent.ComponentResult denied(Component reason)