codechicken.lib.CodeChickenLib Java Examples

The following examples show how to use codechicken.lib.CodeChickenLib. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ProxyClient.java    From CodeChickenLib with GNU Lesser General Public License v2.1 6 votes vote down vote up
private void loadClientConfig() {
    ConfigTag tag;
    ConfigTag clientTag = CodeChickenLib.config.getTag("client");
    clientTag.deleteTag("block_renderer_dispatcher_misc");

    tag = clientTag.getTag("catchBlockRenderExceptions")//
            .setComment(//
                    "With this enabled, CCL will catch all exceptions thrown whilst rendering blocks.",//
                    "If an exception is caught, the block will not be rendered."//
            );
    catchBlockRenderExceptions = tag.setDefaultBoolean(true).getBoolean();
    tag = clientTag.getTag("catchItemRenderExceptions")//
            .setComment(//
                    "With this enabled, CCL will catch all exceptions thrown whilst rendering items.",//
                    "By default CCL will only enhance the crash report, but with 'attemptRecoveryOnItemRenderException' enabled",//
                    " CCL will attempt to recover after the exception."//
            );
    messagePlayerOnRenderExceptionCaught = tag.setDefaultBoolean(true).getBoolean();

    clientTag.save();
}