summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/ftbsc/geb/api/IEventCancelable.java15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/main/java/ftbsc/geb/api/IEventCancelable.java b/src/main/java/ftbsc/geb/api/IEventCancelable.java
index 32669f2..c6630a1 100644
--- a/src/main/java/ftbsc/geb/api/IEventCancelable.java
+++ b/src/main/java/ftbsc/geb/api/IEventCancelable.java
@@ -15,8 +15,17 @@ public interface IEventCancelable extends IEvent {
}
/**
- * Cancels the event. Any user-defined implementation will
- * be ignored.
+ * Cancels the event.
+ * Any user-defined implementation will be ignored.
*/
- default void setCanceled() {}
+ default void setCanceled() {
+ this.setCanceled(true);
+ }
+
+ /**
+ * Cancels the event.
+ * Any user-defined implementation will be ignored.
+ * @param canceled whether the event should be set to canceled
+ */
+ default void setCanceled(boolean canceled) {}
}