/[projects]/miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java
ViewVC logotype

Diff of /miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1604 by torben, Tue Sep 27 18:27:54 2011 UTC revision 1605 by torben, Sat Oct 1 15:21:07 2011 UTC
# Line 27  class Door { Line 27  class Door {
27          private int height;          private int height;
28    
29          private String owner;          private String owner;
30    
31            private boolean isPrivate;
32                    
33    
34          public Door(Block sign, int width, int height, DoorStorage store, String owner) throws ConflictingDoorException{          public Door(Block sign, int width, int height, DoorStorage store, String owner, boolean isPrivate) throws ConflictingDoorException{
35                  leftUpper = sign.getLocation().clone();                  leftUpper = sign.getLocation().clone();
36                                    
37                  this.width = width;                  this.width = width;
38                  this.height = height;                  this.height = height;
39    
40                  this.owner = owner;                  this.owner = owner;
41    
42                    this.isPrivate = isPrivate;
43                                    
44    
45                  direction = sign.getData() - 2;                  direction = sign.getData() - 2;
# Line 92  class Door { Line 96  class Door {
96                  loadBlocks();                  loadBlocks();
97          }*/          }*/
98    
99          public Door(Location loc, int direction, int width, int height, String owner) {          public Door(Location loc, int direction, int width, int height, String owner, boolean isPrivate) {
100                  leftUpper = loc;                  leftUpper = loc;
101                  this.direction = direction;                  this.direction = direction;
102                  this.width = width;                  this.width = width;
103                  this.height = height;                  this.height = height;
104                  this.owner = owner;                  this.owner = owner;
105                    this.isPrivate = isPrivate;
106    
107                  loadBlocks();                  loadBlocks();
108          }          }
# Line 241  class Door { Line 246  class Door {
246                  return direction;                  return direction;
247          }          }
248    
249            public boolean isPrivate() {
250                    return isPrivate;
251            }
252    
253  }  }

Legend:
Removed from v.1604  
changed lines
  Added in v.1605

  ViewVC Help
Powered by ViewVC 1.1.20