Package konquest.api.event.town
Class KonquestMonumentDamageEvent
java.lang.Object
org.bukkit.event.Event
konquest.api.event.KonquestEvent
konquest.api.event.town.KonquestMonumentDamageEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class KonquestMonumentDamageEvent
extends KonquestEvent
implements org.bukkit.event.Cancellable
Called when a town monument is damaged. Any block break inside of a town monument counts as damage.
This class is a wrapper for Bukkit's BlockBreakEvent.
- Author:
- Rumsfield
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionKonquestMonumentDamageEvent(KonquestAPI konquest, KonquestPlayer player, KonquestTerritory territory, org.bukkit.event.block.BlockBreakEvent blockEvent) Constructor for a new event -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.event.block.BlockBreakEventGet Bukkit's BlockBreakEvent associated with the damageGet the player that damaged the town monumentGet the territory where the monument damage occuredbooleanvoidsetCancelled(boolean val) Methods inherited from class konquest.api.event.KonquestEvent
getHandlerList, getHandlers, getKonquestMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
KonquestMonumentDamageEvent
public KonquestMonumentDamageEvent(KonquestAPI konquest, KonquestPlayer player, KonquestTerritory territory, org.bukkit.event.block.BlockBreakEvent blockEvent) Constructor for a new event- Parameters:
konquest- The KonquestAPI instanceplayer- The player that damaged the town monumentterritory- The territory where the monument damage occuredblockEvent- The Bukkit BlockBreakEvent associated with this monument damage
-
-
Method Details
-
getPlayer
Get the player that damaged the town monument- Returns:
- The player
-
getTerritory
Get the territory where the monument damage occured- Returns:
- The territory
-
getBlockEvent
public org.bukkit.event.block.BlockBreakEvent getBlockEvent()Get Bukkit's BlockBreakEvent associated with the damage- Returns:
- The break event that triggered this Konquest event
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean val) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-