Bukkit  1.4.7-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
PaintingBreakEvent.java
Go to the documentation of this file.
1 package org.bukkit.event.painting;
2 
3 import org.bukkit.Warning;
4 import org.bukkit.entity.Painting;
5 import org.bukkit.event.Cancellable;
6 import org.bukkit.event.HandlerList;
7 
12 @Deprecated
13 @Warning(reason="This event has been replaced by HangingBreakEvent")
14 public class PaintingBreakEvent extends PaintingEvent implements Cancellable {
15  private static final HandlerList handlers = new HandlerList();
16  private boolean cancelled;
17  private final RemoveCause cause;
18 
19  public PaintingBreakEvent(final Painting painting, final RemoveCause cause) {
20  super(painting);
21  this.cause = cause;
22  }
23 
29  public RemoveCause getCause() {
30  return cause;
31  }
32 
33  public boolean isCancelled() {
34  return cancelled;
35  }
36 
37  public void setCancelled(boolean cancel) {
38  this.cancelled = cancel;
39  }
40 
44  public enum RemoveCause {
65  }
66 
67  @Override
69  return handlers;
70  }
71 
72  public static HandlerList getHandlerList() {
73  return handlers;
74  }
75 }