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 Event
Event.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerListGet the spectator inventory.booleanCheck whether saving is disabled.voidsetCancelled(boolean cancel) Set whether saving should be disabled.Methods inherited from class Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
SpectatorInventorySaveEvent
-
-
Method Details
-
getHandlerList
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getInventory
Get the spectator inventory. -
isCancelled
public boolean isCancelled()Check whether saving is disabled.- Specified by:
isCancelledin interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel) Set whether saving should be disabled.- Specified by:
setCancelledin interfaceCancellable
-