blob: 72602409014202aa143601ecff4bba67711bdce7 (
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
48
49
|
package org.bukkit.block.data.type;
import org.bukkit.block.data.Directional;
import org.bukkit.block.data.Waterlogged;
/**
* 'type' represents which part of a double chest this block is, or if it is a
* single chest.
*/
public interface Chest extends Directional, Waterlogged {
/**
* Gets the value of the 'type' property.
*
* @return the 'type' value
*/
Type getType();
/**
* Sets the value of the 'type' property.
*
* @param type the new 'type' value
*/
void setType(Type type);
/**
* Type of this chest block.
* <br>
* NB: Left and right are relative to the chest itself, i.e opposite to what
* a player placing the appropriate block would see.
*/
public enum Type {
/**
* The chest is not linked to any others and contains only one 27 slot
* inventory.
*/
SINGLE,
/**
* The chest is the left hand side of a double chest and shares a 54
* block inventory with the chest to its right.
*/
LEFT,
/**
* The chest is the right hand side of a double chest and shares a 54
* block inventory with the chest to its left.
*/
RIGHT;
}
}
|