Class BedwarsResourceSpawnEvent

java.lang.Object
org.bukkit.event.Event
org.screamingsandals.bedwars.api.events.BedwarsResourceSpawnEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class BedwarsResourceSpawnEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
  • Constructor Details

    • BedwarsResourceSpawnEvent

      public BedwarsResourceSpawnEvent(Game game, ItemSpawner spawner, org.bukkit.inventory.ItemStack resource)
      Parameters:
      game -
      spawner -
      resource -
  • Method Details

    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
    • getGame

      public Game getGame()
      Returns:
      game
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getSpawner

      public ItemSpawner getSpawner()
      Returns:
      spawner
    • getLocation

      public org.bukkit.Location getLocation()
      Returns:
      location
    • getResource

      public org.bukkit.inventory.ItemStack getResource()
      Returns:
      resource
    • setResource

      public void setResource(org.bukkit.inventory.ItemStack resource)
      Parameters:
      resource -
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancel)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • getType

      public ItemSpawnerType getType()
      Returns:
      spawner type