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