--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java 2011/09/26 19:04:28 1603 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java 2011/09/27 18:27:54 1604 @@ -73,6 +73,8 @@ } +/* + @Deprecated public Door(String input, Server server) { String parts[] = input.split(":"); @@ -88,8 +90,20 @@ loadBlocks(); + }*/ + + public Door(Location loc, int direction, int width, int height, String owner) { + leftUpper = loc; + this.direction = direction; + this.width = width; + this.height = height; + this.owner = owner; + + loadBlocks(); } + + public void powerChange(World world, int oldCurrent, int newCurrent ) { if (isPowered() == true) { open(); @@ -151,7 +165,7 @@ } - public String toCsv() { +/* public String toCsv() { StringBuilder sb = new StringBuilder(); sb.append( leftUpper.getWorld().getName() ); @@ -168,7 +182,7 @@ sb.append( ":" + owner); return sb.toString(); - } + }*/ public void registerMap(Map map) { @@ -211,4 +225,20 @@ return owner; } + public Location getLeftUpper() { + return leftUpper; + } + + public int getWidth() { + return width; + } + + public int getHeight() { + return height; + } + + public int getDirection() { + return direction; + } + }