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

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

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

revision 1911 by torben, Sun Mar 4 20:21:03 2012 UTC revision 1912 by torben, Sun Jan 13 13:05:16 2013 UTC
# Line 31  class Door { Line 31  class Door {
31    
32          private boolean isPrivate;          private boolean isPrivate;
33                    
34            private String password;
35            
36    
37          public Door(Block sign, int width, int height, DoorStorage store, String owner, boolean isPrivate) throws ConflictingDoorException{          public Door(Block sign, int width, int height, DoorStorage store, String owner, boolean isPrivate, String password) throws ConflictingDoorException{
38                  leftUpper = sign.getLocation().clone();                  leftUpper = sign.getLocation().clone();
39                                    
40                  this.width = width;                  this.width = width;
# Line 41  class Door { Line 43  class Door {
43                  this.owner = owner;                  this.owner = owner;
44    
45                  this.isPrivate = isPrivate;                  this.isPrivate = isPrivate;
46                    this.password = password;
47                                    
48    
49                  direction = sign.getData() - 2;                  direction = sign.getData() - 2;
# Line 97  class Door { Line 100  class Door {
100                  loadBlocks();                  loadBlocks();
101          }*/          }*/
102    
103          public Door(Location loc, int direction, int width, int height, String owner, boolean isPrivate) {          public Door(Location loc, int direction, int width, int height, String owner, boolean isPrivate, String password) {
104                  leftUpper = loc;                  leftUpper = loc;
105                  this.direction = direction;                  this.direction = direction;
106                  this.width = width;                  this.width = width;
107                  this.height = height;                  this.height = height;
108                  this.owner = owner;                  this.owner = owner;
109                  this.isPrivate = isPrivate;                  this.isPrivate = isPrivate;
110                    this.password = password;
111    
112                  loadBlocks();                  loadBlocks();
113          }          }
# Line 251  class Door { Line 255  class Door {
255          public boolean isPrivate() {          public boolean isPrivate() {
256                  return isPrivate;                  return isPrivate;
257          }          }
258            
259            public String getPassword() {
260                    return password;
261            }
262    
263  }  }

Legend:
Removed from v.1911  
changed lines
  Added in v.1912

  ViewVC Help
Powered by ViewVC 1.1.20