/[projects]/miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/chests/ChestBean.java
ViewVC logotype

Contents of /miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/chests/ChestBean.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1807 - (show annotations) (download)
Sun Jun 3 18:05:09 2012 UTC (11 years, 11 months ago) by torben
File size: 1584 byte(s)
Refactor snitchingchests and lockedchests into 1 code unit
1 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 public class ChestBean {
12 final static int LOCKED = 1;
13 final static int SNITCHING = 2;
14
15
16 @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 String modifyPlayers;
31
32 int chestType;
33
34
35
36
37 public int getChestType() {
38 return chestType;
39 }
40 public void setChestType(int chestType) {
41 this.chestType = chestType;
42 }
43 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 }

  ViewVC Help
Powered by ViewVC 1.1.20