1 |
torben |
1805 |
package dk.thoerup.bukkit.hoeruputils.chests; |
2 |
|
|
|
3 |
|
|
|
4 |
|
|
import javax.persistence.Entity; |
5 |
|
|
import javax.persistence.GeneratedValue; |
6 |
|
|
import javax.persistence.Id; |
7 |
|
|
|
8 |
|
|
|
9 |
|
|
|
10 |
|
|
@Entity |
11 |
torben |
1807 |
public class ChestBean { |
12 |
|
|
final static int LOCKED = 1; |
13 |
|
|
final static int SNITCHING = 2; |
14 |
|
|
|
15 |
|
|
|
16 |
torben |
1805 |
@Id |
17 |
|
|
@GeneratedValue |
18 |
|
|
int id; |
19 |
|
|
|
20 |
|
|
String owner; |
21 |
|
|
String description; |
22 |
|
|
|
23 |
|
|
String world; |
24 |
|
|
int x; |
25 |
|
|
int y; |
26 |
|
|
int z; |
27 |
|
|
|
28 |
|
|
boolean doublechest = false; |
29 |
|
|
|
30 |
torben |
1807 |
String modifyPlayers; |
31 |
|
|
|
32 |
|
|
int chestType; |
33 |
torben |
1805 |
|
34 |
|
|
|
35 |
|
|
|
36 |
|
|
|
37 |
torben |
1807 |
public int getChestType() { |
38 |
|
|
return chestType; |
39 |
|
|
} |
40 |
|
|
public void setChestType(int chestType) { |
41 |
|
|
this.chestType = chestType; |
42 |
|
|
} |
43 |
torben |
1805 |
public String getOwner() { |
44 |
|
|
return owner; |
45 |
|
|
} |
46 |
|
|
public void setOwner(String owner) { |
47 |
|
|
this.owner = owner; |
48 |
|
|
} |
49 |
|
|
public String getDescription() { |
50 |
|
|
return description; |
51 |
|
|
} |
52 |
|
|
public void setDescription(String description) { |
53 |
|
|
this.description = description; |
54 |
|
|
} |
55 |
|
|
|
56 |
|
|
public int getId() { |
57 |
|
|
return id; |
58 |
|
|
} |
59 |
|
|
|
60 |
|
|
public void setId(int id) { |
61 |
|
|
this.id = id; |
62 |
|
|
} |
63 |
|
|
|
64 |
|
|
public String getWorld() { |
65 |
|
|
return world; |
66 |
|
|
} |
67 |
|
|
|
68 |
|
|
public void setWorld(String world) { |
69 |
|
|
this.world = world; |
70 |
|
|
} |
71 |
|
|
|
72 |
|
|
public int getX() { |
73 |
|
|
return x; |
74 |
|
|
} |
75 |
|
|
|
76 |
|
|
public void setX(int x) { |
77 |
|
|
this.x = x; |
78 |
|
|
} |
79 |
|
|
|
80 |
|
|
public int getY() { |
81 |
|
|
return y; |
82 |
|
|
} |
83 |
|
|
|
84 |
|
|
public void setY(int y) { |
85 |
|
|
this.y = y; |
86 |
|
|
} |
87 |
|
|
|
88 |
|
|
public int getZ() { |
89 |
|
|
return z; |
90 |
|
|
} |
91 |
|
|
|
92 |
|
|
public void setZ(int z) { |
93 |
|
|
this.z = z; |
94 |
|
|
} |
95 |
|
|
public boolean isDoublechest() { |
96 |
|
|
return doublechest; |
97 |
|
|
} |
98 |
|
|
public void setDoublechest(boolean doublechest) { |
99 |
|
|
this.doublechest = doublechest; |
100 |
|
|
} |
101 |
|
|
|
102 |
|
|
public String getModifyPlayers() { |
103 |
|
|
return modifyPlayers; |
104 |
|
|
} |
105 |
|
|
public void setModifyPlayers(String modifyPlayers) { |
106 |
|
|
this.modifyPlayers = modifyPlayers; |
107 |
|
|
} |
108 |
|
|
|
109 |
|
|
} |