Package net.luckperms.api.event.type
Interface ResultEvent<T>
- Type Parameters:
T- the type of the result
- All Known Subinterfaces:
UniqueIdDetermineTypeEvent,UniqueIdLookupEvent,UsernameLookupEvent
public interface ResultEvent<T>
Represents an event that has a result.
- Since:
- 5.3
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanGets if a result has been set for the event.result()Gets anAtomicReferencecontaining the result.
-
Method Details
-
result
@NonNull AtomicReference<T> result()Gets anAtomicReferencecontaining the result.- Returns:
- the result
-
hasResult
default boolean hasResult()Gets if a result has been set for the event.- Returns:
- if there is a result
-