Package net.luckperms.api.util
Interface Result
-
- All Known Subinterfaces:
DemotionResult,PlayerLoginProcessEvent,PromotionResult
- All Known Implementing Classes:
DataMutateResult,DemotionResult.Status,PromotionResult.Status
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Result
Represents a generic result, which can either be successful or fail.
-
-
Field Summary
Fields Modifier and Type Field Description static ResultGENERIC_FAILUREInstance ofResultwhich always reports failure.static ResultGENERIC_SUCCESSInstance ofResultwhich always reports success.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanwasSuccessful()Gets if the operation which produced this result completed successfully.
-