Class SpectatorInventorySaveEvent
java.lang.Object
org.bukkit.event.Event
com.janboerman.invsee.spigot.api.event.SpectatorInventorySaveEvent
- All Implemented Interfaces:
Cancellable
Called when the contents of a
Cancelling this event has the effect of the inventory data not getting saved.
SpectatorInventory
is saved to the target's player data file.
Cancelling this event has the effect of the inventory data not getting saved.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
Get the spectator inventory.boolean
Check whether saving is disabled.void
setCancelled
(boolean cancel) Set whether saving should be disabled.Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
SpectatorInventorySaveEvent
-
-
Method Details
-
getHandlerList
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getInventory
Get the spectator inventory. -
isCancelled
public boolean isCancelled()Check whether saving is disabled.- Specified by:
isCancelled
in interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel) Set whether saving should be disabled.- Specified by:
setCancelled
in interfaceCancellable
-