Class SpectatorInventorySaveEvent

java.lang.Object
org.bukkit.event.Event
com.janboerman.invsee.spigot.api.event.SpectatorInventorySaveEvent
All Implemented Interfaces:
Cancellable

public class SpectatorInventorySaveEvent extends Event implements Cancellable
Called when the contents of a SpectatorInventory is saved to the target's player data file.
Cancelling this event has the effect of the inventory data not getting saved.
  • Constructor Details

    • SpectatorInventorySaveEvent

      public SpectatorInventorySaveEvent(SpectatorInventory<?> spectatorInventory)
  • Method Details

    • getHandlerList

      public static HandlerList getHandlerList()
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getInventory

      public SpectatorInventory<?> getInventory()
      Get the spectator inventory.
    • isCancelled

      public boolean isCancelled()
      Check whether saving is disabled.
      Specified by:
      isCancelled in interface Cancellable
    • setCancelled

      public void setCancelled(boolean cancel)
      Set whether saving should be disabled.
      Specified by:
      setCancelled in interface Cancellable