Commits

Matt authored and md_5 committed fbca9b6d981
Remove deprecated Painting*Events

Replaced by Hanging*Events since October 2012.
No tags

src/main/java/org/bukkit/entity/Painting.java

Modified
1 1 package org.bukkit.entity;
2 2
3 3 import org.bukkit.Art;
4 -import org.bukkit.event.painting.PaintingBreakEvent;
4 +import org.bukkit.event.hanging.HangingBreakEvent;
5 5
6 6 /**
7 7 * Represents a Painting.
8 8 */
9 9 public interface Painting extends Hanging {
10 10
11 11 /**
12 12 * Get the art on this painting
13 13 *
14 14 * @return The art
24 24 */
25 25 public boolean setArt(Art art);
26 26
27 27 /**
28 28 * Set the art on this painting
29 29 *
30 30 * @param art The new art
31 31 * @param force If true, force the new art regardless of whether it fits
32 32 * at the current location. Note that forcing it where it can't fit
33 33 * normally causes it to drop as an item unless you override this by
34 - * catching the {@link PaintingBreakEvent}.
34 + * catching the {@link HangingBreakEvent}.
35 35 * @return False if force was false and the new art won't fit at the
36 36 * painting's current location
37 37 */
38 38 public boolean setArt(Art art, boolean force);
39 39 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut