Package net.crux.ac.api.event
Class CruxMitigationEvent
java.lang.Object
org.bukkit.event.Event
net.crux.ac.api.event.CruxMitigationEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class CruxMitigationEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
Dispatched synchronously on the main thread right before a mitigation (setback / rollback) is executed on a player.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionCruxMitigationEvent(org.bukkit.entity.Player player, String checkName, CheckCategory category, org.bukkit.Location targetLocation, String reason) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerListorg.bukkit.event.HandlerListorg.bukkit.entity.Playerorg.bukkit.LocationbooleanvoidsetCancelled(boolean cancel) voidsetTargetLocation(org.bukkit.Location targetLocation) Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
CruxMitigationEvent
public CruxMitigationEvent(org.bukkit.entity.Player player, String checkName, CheckCategory category, org.bukkit.Location targetLocation, String reason)
-
-
Method Details
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-
getPlayer
public org.bukkit.entity.Player getPlayer() -
getCheckName
-
getCategory
-
getTargetLocation
public org.bukkit.Location getTargetLocation() -
setTargetLocation
public void setTargetLocation(org.bukkit.Location targetLocation) -
getReason
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-