Newer
Older
ultramine_bukkit / src / main / java / org / bukkit / event / Cancellable.java
@vlad20012 vlad20012 on 24 Feb 2017 548 bytes initial
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
	 */
	public 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
	 */
	public void setCancelled(boolean cancel);
}