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 Details

    • ComponentResult

      protected ComponentResult(boolean status, @Nullable Component reason)
      Represents an allowed or denied result that may include a denial reason.
      Parameters:
      status - whether the result is allowed
      reason - the component explaining why the result was denied, or null
  • Method Details