blob: 6ff651adea3c19e74c8314dee0ab4b86cbd3c58a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
package org.bukkit.entity;
import org.bukkit.Rotation;
import org.bukkit.inventory.ItemStack;
/**
* Represents an Item Frame
*/
public interface ItemFrame extends Hanging {
/**
* Get the item in this frame
*
* @return a defensive copy the item in this item frame
*/
public ItemStack getItem();
/**
* Set the item in this frame
*
* @param item the new item
*/
public void setItem(ItemStack item);
/**
* Set the item in this frame
*
* @param item the new item
* @param playSound whether or not to play the item placement sound
*/
public void setItem(ItemStack item, boolean playSound);
/**
* Get the rotation of the frame's item
*
* @return the direction
*/
public Rotation getRotation();
/**
* Set the rotation of the frame's item
*
* @param rotation the new rotation
* @throws IllegalArgumentException if rotation is null
*/
public void setRotation(Rotation rotation) throws IllegalArgumentException;
}
|