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; } }
public static void init() throws InstantiationException, IllegalAccessException { for (final BlockManager block : values()) if (block.blockCreated) block.prepare(); }