Uses of Interface
com.janboerman.invsee.spigot.api.response.NotCreatedReason
-
Uses of NotCreatedReason in com.janboerman.invsee.spigot.api.response
Modifier and TypeClassDescriptionclass
class
Deprecated.class
Inventories of offline players could not be opened.class
The target player does not exist.class
The target player is exempted from being spectated.class
We don't know why the SpectatorInventory could not be created or opened.class
The target player has not been on the server before.Modifier and TypeMethodDescriptionInventoryNotCreated.getNotCreatedReason()
Get why theSpectatorInventory
could not be created.SpectateResponse.getReason()
Get the reason why the spectator inventory could not be created.Modifier and TypeMethodDescriptionstatic <SI extends SpectatorInventory<?>>
SpectateResponse<SI> SpectateResponse.fail
(NotCreatedReason reason) Create a failed SpectateResponse.static <SI extends SpectatorInventory<?>>
SpectateResponse<SI> SpectateResponse.fromOptional
(Optional<SI> optional, NotCreatedReason ifEmpty) Convert anOptional
into a SpectateResponse.static InventoryNotCreated
NotOpenedReason.notCreated
(NotCreatedReason notCreatedReason) Modifier and TypeMethodDescriptiondefault void
SpectateResponse.ifFailure
(Consumer<? super NotCreatedReason> reasonConsumer) Much likeOptional.ifPresent(Consumer)