--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java 2011/06/27 18:10:05 1532 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java 2011/10/01 15:21:07 1605 @@ -14,22 +14,33 @@ final static int NORTH = 2; final static int SOUTH = 3; - Location leftUpper; + private Location leftUpper; - Location blocks[][] = new Location[2][2]; // [width][height] - [0][0] == leftUpper - - int material; + private Location blocks[][]; // [width][height] - [0][0] == leftUpper + private int material[][]; + private byte data[][]; - int direction; + private int direction; - int width = 2; - int height = 2; + private int width; + private int height; + + private String owner; + + private boolean isPrivate; - public Door(Block sign) { + public Door(Block sign, int width, int height, DoorStorage store, String owner, boolean isPrivate) throws ConflictingDoorException{ leftUpper = sign.getLocation().clone(); + this.width = width; + this.height = height; + + this.owner = owner; + + this.isPrivate = isPrivate; + direction = sign.getData() - 2; @@ -50,12 +61,24 @@ - material = leftUpper.getBlock().getTypeId(); + //material = leftUpper.getBlock().getTypeId(); loadBlocks(); + + + for (int w=0; w map) { @@ -135,21 +207,47 @@ } - public void open(World world) { + public void open() { for (int w=0; w