Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
PaintingEvent.java
1 package org.bukkit.event.painting;
2 
3 import org.bukkit.Warning;
5 import org.bukkit.event.Event;
6 
7 /**
8  * Represents a painting-related event.
9  *
10  * @deprecated Use {@link org.bukkit.event.hanging.HangingEvent} instead.
11  */
12 @Deprecated
13 @Warning(reason="This event has been replaced by HangingEvent")
14 public abstract class PaintingEvent extends Event {
15  protected Painting painting;
16 
17  protected PaintingEvent(final Painting painting) {
18  this.painting = painting;
19  }
20 
21  /**
22  * Gets the painting involved in this event.
23  *
24  * @return the painting
25  */
26  public Painting getPainting() {
27  return painting;
28  }
29 }