Class BedwarsPlayerBuildBlock
java.lang.Object
org.bukkit.event.Event
org.screamingsandals.bedwars.api.events.BedwarsPlayerBuildBlock
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class BedwarsPlayerBuildBlock
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
ConstructorDescriptionBedwarsPlayerBuildBlock
(Game game, org.bukkit.entity.Player player, RunningTeam team, org.bukkit.block.Block block, org.bukkit.inventory.ItemStack itemInHand, org.bukkit.block.BlockState replaced) -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.block.Block
getBlock()
getGame()
static org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
org.bukkit.inventory.ItemStack
org.bukkit.entity.Player
org.bukkit.block.BlockState
getTeam()
boolean
void
setCancelled
(boolean cancel) Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
BedwarsPlayerBuildBlock
public BedwarsPlayerBuildBlock(Game game, org.bukkit.entity.Player player, RunningTeam team, org.bukkit.block.Block block, org.bukkit.inventory.ItemStack itemInHand, org.bukkit.block.BlockState replaced) - Parameters:
game
-player
-team
-block
-itemInHand
-replaced
-
-
-
Method Details
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getGame
- Returns:
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getPlayer
public org.bukkit.entity.Player getPlayer()- Returns:
-
getTeam
- Returns:
-
getBlock
public org.bukkit.block.Block getBlock()- Returns:
-
getReplaced
public org.bukkit.block.BlockState getReplaced()- Returns:
-
getItemInHand
public org.bukkit.inventory.ItemStack getItemInHand()- Returns:
-
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
-