Class CancelAttempt

java.lang.Object
com.sk89q.worldguard.bukkit.event.debug.CancelAttempt

public class CancelAttempt extends Object
Represents call to Cancellable.setCancelled(boolean).
  • Constructor Details

    • CancelAttempt

      public CancelAttempt(boolean before, boolean after, StackTraceElement[] stackTrace)
      Create a new instance.
      Parameters:
      before - The cancellation flag before the call
      after - The cancellation flag after the call
      stackTrace - 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

      public StackTraceElement[] getStackTrace()
      Get the stack trace.
      Returns:
      The stack trace