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

org.bukkit.event.Cancellable Maven / Gradle / Ivy

package org.bukkit.event;

public interface Cancellable {

  /**
   * Gets the cancellation state of this event. A cancelled event will not
   * be executed in the server, but will still pass to other plugins
   *
   * @return true if this event is cancelled
   */
  boolean isCancelled();

  /**
   * Sets the cancellation state of this event. A cancelled event will not
   * be executed in the server, but will still pass to other plugins.
   *
   * @param cancel true if you wish to cancel this event
   */
  void setCancelled(boolean cancel);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy