Пример #1
0
 private static void createBlocks() throws Exception {
   for (final BlockManager block : BlockManager.values())
     if (block.getSettings().getID() > 0) {
       try {
         block.create();
       } catch (final Exception e) {
         throw e;
       }
       block.blockCreated = true;
     }
 }
Пример #2
0
 public static void init() throws InstantiationException, IllegalAccessException {
   for (final BlockManager block : values()) if (block.blockCreated) block.prepare();
 }