Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
ItemFrame.java
1 package org.bukkit.entity;
2 
3 import org.bukkit.Rotation;
5 
6 /**
7  * Represents an Item Frame
8  */
9 public interface ItemFrame extends Hanging {
10 
11  /**
12  * Get the item in this frame
13  *
14  * @return a defensive copy the item in this item frame
15  */
16  public ItemStack getItem();
17 
18  /**
19  * Set the item in this frame
20  *
21  * @param item the new item
22  */
23  public void setItem(ItemStack item);
24 
25  /**
26  * Get the rotation of the frame's item
27  *
28  * @return the direction
29  */
30  public Rotation getRotation();
31 
32  /**
33  * Set the rotation of the frame's item
34  *
35  * @param rotation the new rotation
36  * @throws IllegalArgumentException if rotation is null
37  */
38  public void setRotation(Rotation rotation) throws IllegalArgumentException;
39 }
void setItem(ItemStack item)
void setRotation(Rotation rotation)