ForgeModContainer.java 文件源码

java
阅读 26 收藏 0 点赞 0 评论 0

项目:TRHS_Club_Mod_2016 作者:
/**
 * By subscribing to the OnConfigChangedEvent we are able to execute code when our config screens are closed.
 * This implementation uses the optional configID string to handle multiple Configurations using one event handler.
 */
@SubscribeEvent
public void onConfigChanged(OnConfigChangedEvent event)
{
    if (getMetadata().modId.equals(event.modID) && !event.isWorldRunning)
    {
        if (Configuration.CATEGORY_GENERAL.equals(event.configID))
        {
            syncConfig(false);
        }
        else if ("chunkLoader".equals(event.configID))
        {
            ForgeChunkManager.syncConfigDefaults();
            ForgeChunkManager.loadConfiguration();
        }
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号