Class PopUpTowerPlaceEvent
java.lang.Object
org.bukkit.event.Event
com.tomkeuper.bedwars.api.events.gameplay.PopUpTowerPlaceEvent
public class PopUpTowerPlaceEvent
extends org.bukkit.event.Event
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionPopUpTowerPlaceEvent(org.bukkit.entity.Player player, org.bukkit.Location loc, org.bukkit.block.Block block, IArena arena) Called when a player places a pop-up tower -
Method Summary
Modifier and TypeMethodDescriptiongetArena()Get arenaorg.bukkit.block.BlockgetBlock()Get the block the pop-up tower was placed onstatic org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListorg.bukkit.LocationGet the location where the pop-up tower was placed onorg.bukkit.entity.PlayerGet playerbooleanUsed to check if whether the event is cancelledvoidsetCancelled(boolean cancelled) Used to cancel the eventvoidsetLocation(org.bukkit.Location loc) Set the location where the pop-up tower is being placed onMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PopUpTowerPlaceEvent
public PopUpTowerPlaceEvent(org.bukkit.entity.Player player, org.bukkit.Location loc, org.bukkit.block.Block block, IArena arena) Called when a player places a pop-up tower
-
-
Method Details
-
getLocation
public org.bukkit.Location getLocation()Get the location where the pop-up tower was placed on -
setLocation
public void setLocation(org.bukkit.Location loc) Set the location where the pop-up tower is being placed on -
getBlock
public org.bukkit.block.Block getBlock()Get the block the pop-up tower was placed on -
getPlayer
public org.bukkit.entity.Player getPlayer()Get player -
getArena
Get arena -
setCancelled
public void setCancelled(boolean cancelled) Used to cancel the event -
isCancelled
public boolean isCancelled()Used to check if whether the event is cancelled- Returns:
- whether the event is cancelled
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-