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

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    Get arena
    org.bukkit.block.Block
    Get the block the pop-up tower was placed on
    static org.bukkit.event.HandlerList
     
    @NotNull org.bukkit.event.HandlerList
     
    org.bukkit.Location
    Get the location where the pop-up tower was placed on
    org.bukkit.entity.Player
    Get player
    boolean
    Used to check if whether the event is cancelled
    void
    setCancelled(boolean cancelled)
    Used to cancel the event
    void
    setLocation(org.bukkit.Location loc)
    Set the location where the pop-up tower is being placed on

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public IArena 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:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

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