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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionBedwarsResourceSpawnEvent
(Game game, ItemSpawner spawner, org.bukkit.inventory.ItemStack resource) -
Method Summary
Modifier and TypeMethodDescriptiongetGame()
static org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
org.bukkit.Location
org.bukkit.inventory.ItemStack
getType()
boolean
void
setCancelled
(boolean cancel) void
setResource
(org.bukkit.inventory.ItemStack resource) Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
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
- Returns:
- game
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
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 interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-
getType
- Returns:
- spawner type
-