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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanhasResult()Gets if a result has been set for the event.@NonNull AtomicReference<T>result()Gets anAtomicReferencecontaining the result.
-
-
-
Method Detail
-
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
-
-