--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java 2011/06/29 14:57:08 1535 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java 2012/01/27 12:21:27 1684 @@ -14,26 +14,33 @@ 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; + + private boolean isPrivate; - public Door(Block sign, int width, int height, DoorStorage store) throws ConflictingDoorException{ + 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; - blocks = new Location[width][height]; direction = sign.getData() - 2; @@ -54,11 +61,11 @@ - material = leftUpper.getBlock().getTypeId(); + //material = leftUpper.getBlock().getTypeId(); loadBlocks(); - + for (int w=0; w map) { @@ -158,21 +207,47 @@ } - public void open(World world) { + public void open() { for (int w=0; w