--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java 2011/06/27 19:34:03 1533 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java 2011/07/24 17:23:48 1581 @@ -14,26 +14,29 @@ final static int NORTH = 2; final static int SOUTH = 3; - Location leftUpper; + private Location leftUpper; - Location blocks[][]; // [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; - int height; + private int width; + private int height; + + private String owner; - public Door(Block sign, int width, int height) { + public Door(Block sign, int width, int height, DoorStorage store, String owner) throws ConflictingDoorException{ leftUpper = sign.getLocation().clone(); this.width = width; this.height = height; + + this.owner = owner; - blocks = new Location[width][height]; direction = sign.getData() - 2; @@ -54,9 +57,19 @@ - material = leftUpper.getBlock().getTypeId(); + //material = leftUpper.getBlock().getTypeId(); loadBlocks(); + + + for (int w=0; w