Files
Paper/paper-api/src/main/java/org/bukkit/event/Cancellable.java
2023-04-16 09:54:51 +10:00

24 lines
680 B
Java

package org.bukkit.event;
/**
* A type characterizing events that may be cancelled by a plugin or the server.
*/
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);
}