Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.apache.commons.lang.Validate;
- for (Location location : doorblocks.keySet()) {
- System.out.println("Working");
- if (location.getWorld() == world) {
- Block block = location.getBlock();
- Validate.notNull(block, "null block");
- Validate.notNull(doorblocks, "null lookup");
- Byte doordata = doorblocks.get(location);
- Validate.notNull(doordata, "null unboxing");
- Valdiate.notNull(Material.WOOD_DOOR, "well that doesn't make sense");
- int id = Material.WOOD_DOOR.getId();
- block.setTypeIdAndData(id, raw, false);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement