diff options
Diffstat (limited to 'src/main/java/org/bukkit/event/painting/PaintingBreakEvent.java')
-rw-r--r-- | src/main/java/org/bukkit/event/painting/PaintingBreakEvent.java | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/src/main/java/org/bukkit/event/painting/PaintingBreakEvent.java b/src/main/java/org/bukkit/event/painting/PaintingBreakEvent.java deleted file mode 100644 index 3e27c69e..00000000 --- a/src/main/java/org/bukkit/event/painting/PaintingBreakEvent.java +++ /dev/null @@ -1,76 +0,0 @@ -package org.bukkit.event.painting; - -import org.bukkit.Warning; -import org.bukkit.entity.Painting; -import org.bukkit.event.Cancellable; -import org.bukkit.event.HandlerList; - -/** - * Triggered when a painting is removed - * - * @deprecated Use {@link org.bukkit.event.hanging.HangingBreakEvent} instead. - */ -@Deprecated -@Warning(reason="This event has been replaced by HangingBreakEvent") -public class PaintingBreakEvent extends PaintingEvent implements Cancellable { - private static final HandlerList handlers = new HandlerList(); - private boolean cancelled; - private final RemoveCause cause; - - public PaintingBreakEvent(final Painting painting, final RemoveCause cause) { - super(painting); - this.cause = cause; - } - - /** - * Gets the cause for the painting's removal - * - * @return the RemoveCause for the painting's removal - */ - public RemoveCause getCause() { - return cause; - } - - public boolean isCancelled() { - return cancelled; - } - - public void setCancelled(boolean cancel) { - this.cancelled = cancel; - } - - /** - * An enum to specify the cause of the removal - */ - public enum RemoveCause { - /** - * Removed by an entity - */ - ENTITY, - /** - * Removed by fire - */ - FIRE, - /** - * Removed by placing a block on it - */ - OBSTRUCTION, - /** - * Removed by water flowing over it - */ - WATER, - /** - * Removed by destroying the block behind it, etc - */ - PHYSICS, - } - - @Override - public HandlerList getHandlers() { - return handlers; - } - - public static HandlerList getHandlerList() { - return handlers; - } -} |