Uses of Interface
com.janboerman.invsee.spigot.api.response.NotCreatedReason
Packages that use NotCreatedReason
-
Uses of NotCreatedReason in com.janboerman.invsee.spigot.api.response
Classes in com.janboerman.invsee.spigot.api.response that implement NotCreatedReasonModifier 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.Methods in com.janboerman.invsee.spigot.api.response that return NotCreatedReasonModifier and TypeMethodDescriptionInventoryNotCreated.getNotCreatedReason()
Get why theSpectatorInventory
could not be created.SpectateResponse.getReason()
Get the reason why the spectator inventory could not be created.Methods in com.janboerman.invsee.spigot.api.response with parameters of type NotCreatedReasonModifier 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) Method parameters in com.janboerman.invsee.spigot.api.response with type arguments of type NotCreatedReasonModifier and TypeMethodDescriptiondefault void
SpectateResponse.ifFailure
(Consumer<? super NotCreatedReason> reasonConsumer) Much likeOptional.ifPresent(Consumer)