✨ Allow triggering states from anywhere
[rhynodge.git] / src / main / java / net / pterodactylus / rhynodge / State.java
index 2a8ba1c..966dbe3 100644 (file)
@@ -55,9 +55,12 @@ public interface State {
         * @return {@code true} if this state triggers a change notification,
         * {@code false} otherwise
         */
-       default boolean triggered() {
-               return false;
-       }
+       boolean triggered();
+
+       /**
+        * Sets whether this state will trigger a notification.
+        */
+       void trigger();
 
        boolean isEmpty();