Advertisement
riking

Untitled

Sep 1st, 2013
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. import org.apache.commons.lang.Validate;
  3.  
  4.  
  5. for (Location location : doorblocks.keySet()) {
  6. System.out.println("Working");
  7. if (location.getWorld() == world) {
  8. Block block = location.getBlock();
  9. Validate.notNull(block, "null block");
  10. Validate.notNull(doorblocks, "null lookup");
  11. Byte doordata = doorblocks.get(location);
  12. Validate.notNull(doordata, "null unboxing");
  13. Valdiate.notNull(Material.WOOD_DOOR, "well that doesn't make sense");
  14. int id = Material.WOOD_DOOR.getId();
  15. block.setTypeIdAndData(id, raw, false);
  16.  
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement