All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.badbird5907.lightning.event.Cancellable Maven / Gradle / Ivy

The newest version!
package net.badbird5907.lightning.event;

public interface Cancellable {
    boolean isCancelled();

    void setCancelled(boolean cancelled);

    class DefaultCancellable implements Cancellable {
        private boolean cancelled = false;

        @Override
        public boolean isCancelled() {
            return cancelled;
        }

        @Override
        public void setCancelled(boolean cancelled) {
            this.cancelled = cancelled;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy