Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
Cancellable.java
1 package org.bukkit.event;
2 
3 public interface Cancellable {
4 
5  /**
6  * Gets the cancellation state of this event. A cancelled event will not
7  * be executed in the server, but will still pass to other plugins
8  *
9  * @return true if this event is cancelled
10  */
11  public boolean isCancelled();
12 
13  /**
14  * Sets the cancellation state of this event. A cancelled event will not
15  * be executed in the server, but will still pass to other plugins.
16  *
17  * @param cancel true if you wish to cancel this event
18  */
19  public void setCancelled(boolean cancel);
20 }
void setCancelled(boolean cancel)