Class CancelAttempt
java.lang.Object
com.sk89q.worldguard.bukkit.event.debug.CancelAttempt
Represents call to
Cancellable.setCancelled(boolean)
.-
Constructor Summary
ConstructorDescriptionCancelAttempt
(boolean before, boolean after, StackTraceElement[] stackTrace) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getAfter()
Get the cancellation state after the call.boolean
Get the cancellation state before the call.Get the stack trace.
-
Constructor Details
-
CancelAttempt
Create a new instance.- Parameters:
before
- The cancellation flag before the callafter
- The cancellation flag after the callstackTrace
- The stack trace
-
-
Method Details
-
getBefore
public boolean getBefore()Get the cancellation state before the call.- Returns:
- Whether the event was cancelled before
-
getAfter
public boolean getAfter()Get the cancellation state after the call.- Returns:
- The new cancellation state
-
getStackTrace
Get the stack trace.- Returns:
- The stack trace
-