当前位置: 首页>>代码示例>>Java>>正文


Java ConfigHandler.configs方法代码示例

本文整理汇总了Java中me.ichun.mods.ichunutil.common.core.config.ConfigHandler.configs方法的典型用法代码示例。如果您正苦于以下问题:Java ConfigHandler.configs方法的具体用法?Java ConfigHandler.configs怎么用?Java ConfigHandler.configs使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在me.ichun.mods.ichunutil.common.core.config.ConfigHandler的用法示例。


在下文中一共展示了ConfigHandler.configs方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: GuiConfigs

import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入方法依赖的package包/类
public GuiConfigs(GuiScreen screen)
{
    VARIABLE_LEVEL = 0;

    Minecraft mc = Minecraft.getMinecraft();

    oriScale = mc.gameSettings.guiScale;
    mc.gameSettings.guiScale = 2;

    oriScreen = screen;

    windowConfigs = new WindowConfigs(this, 0, 0, 0, 0, 0, 0);
    windowCats = new WindowCats(this, 0, 0, 0, 0, 0, 0);
    windowSetter = new WindowSetter(this, 0, 0, 0, 0, 0, 0);
    addWindowOnTop(windowConfigs);
    addWindowOnTop(windowCats);
    addWindowOnTop(windowSetter);

    for(ConfigBase config : ConfigHandler.configs)
    {
        config.enterConfigScreen();
    }

    tooltipTime = 0;
}
 
开发者ID:iChun,项目名称:iChunUtil,代码行数:26,代码来源:GuiConfigs.java

示例2: postInit

import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入方法依赖的package包/类
public void postInit()
{
    iChunUtil.oreDictBlockCompactRawPorkchop = OreDictionary.getOres("blockCompactRawPorkchop");

    for(ConfigBase cfg : ConfigHandler.configs)
    {
        cfg.setup();
    }

    if(!(iChunUtil.config.eulaAcknowledged.equalsIgnoreCase("true") || iChunUtil.config.eulaAcknowledged.equalsIgnoreCase(getPlayerName())))
    {
        iChunUtil.LOGGER.info("=============================================================");
        iChunUtil.LOGGER.info(I18n.translateToLocal("ichunutil.eula.message"));
        iChunUtil.LOGGER.info(I18n.translateToLocal("ichunutil.eula.messageServer"));
        iChunUtil.LOGGER.info("=============================================================");
    }
}
 
开发者ID:iChun,项目名称:iChunUtil,代码行数:18,代码来源:ProxyCommon.java

示例3: WindowConfigs

import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入方法依赖的package包/类
public WindowConfigs(IWorkspace parent, int x, int y, int w, int h, int minW, int minH)
{
    super(parent, x, y, w, h, minW, minH, "ichunutil.config.gui.options", true);

    elements.add(new ElementButton(this, 10, height - 22, 60, 16, -1, false, 0, 1, "gui.done"));

    configs = new ElementListTree(this, BORDER_SIZE + 1, BORDER_SIZE + 1 + 10, width - (BORDER_SIZE * 2 + 2), height - BORDER_SIZE - 22 - 16, 3, false, false);
    elements.add(configs);

    for(ConfigBase config : ConfigHandler.configs)
    {
        configs.createTree(null, config, 13, 0, false, false);
    }
}
 
开发者ID:iChun,项目名称:iChunUtil,代码行数:15,代码来源:WindowConfigs.java

示例4: onGuiClosed

import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入方法依赖的package包/类
@Override
public void onGuiClosed()
{
    for(ConfigBase config : ConfigHandler.configs)
    {
        config.exitConfigScreen();
    }

    Keyboard.enableRepeatEvents(false);

    Minecraft.getMinecraft().gameSettings.guiScale = oriScale;
}
 
开发者ID:iChun,项目名称:iChunUtil,代码行数:13,代码来源:GuiConfigs.java

示例5: onClientConnection

import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入方法依赖的package包/类
@SubscribeEvent
public void onClientConnection(FMLNetworkEvent.ClientConnectedToServerEvent event)
{
    connectingToServer = true;

    if(iChunUtil.userIsPatron)
    {
        patronUpdateServerAsPatron = true;
    }

    for(ConfigBase conf : ConfigHandler.configs)
    {
        conf.storeSession();
    }
}
 
开发者ID:iChun,项目名称:iChunUtil,代码行数:16,代码来源:EventHandlerClient.java

示例6: onClientDisconnect

import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入方法依赖的package包/类
public void onClientDisconnect()
{
    EntityTrackerHandler.onClientDisconnect();
    PatronEffectRenderer.onClientDisconnect();

    GrabHandler.grabbedEntities.get(Side.CLIENT).clear();

    for(ConfigBase conf : ConfigHandler.configs)
    {
        conf.resetSession();
    }

    EntityHelper.profileCache = null;
    EntityHelper.sessionService = null;
}
 
开发者ID:iChun,项目名称:iChunUtil,代码行数:16,代码来源:EventHandlerClient.java

示例7: execute

import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入方法依赖的package包/类
@Override
public void execute(Side side, EntityPlayer player)
{
    for(ConfigBase conf : ConfigHandler.configs)
    {
        if(conf.getModId().equals(modId))
        {
            for(Field field : conf.sessionProp)
            {
                try
                {
                    field.setAccessible(true);
                    if(vars.containsKey(field.getName()))
                    {
                        Object ori = field.get(conf);
                        field.set(conf, vars.get(field.getName()));
                        conf.onSessionChange(field, ori);
                    }
                }
                catch(Exception ignored)
                {
                }
            }
            conf.onReceiveSession();
            break;
        }
    }
}
 
开发者ID:iChun,项目名称:iChunUtil,代码行数:29,代码来源:PacketSession.java

示例8: onPlayerLogin

import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入方法依赖的package包/类
@SubscribeEvent(priority = EventPriority.HIGHEST)
public void onPlayerLogin(PlayerEvent.PlayerLoggedInEvent event)
{
    for(ConfigBase conf : ConfigHandler.configs)
    {
        if(!conf.sessionProp.isEmpty())
        {
            conf.sendPlayerSession(event.player);
        }
    }
    iChunUtil.channel.sendTo(new PacketPatrons(null), event.player);
    iChunUtil.channel.sendTo(new PacketUserShouldShowUpdates(iChunUtil.config.versionNotificationTypes == 0 || (iChunUtil.config.versionNotificationTypes == 1 && ((EntityPlayerMP)event.player).mcServer.getPlayerList().canSendCommands(event.player.getGameProfile()))), event.player);
}
 
开发者ID:iChun,项目名称:iChunUtil,代码行数:14,代码来源:EventHandlerServer.java


注:本文中的me.ichun.mods.ichunutil.common.core.config.ConfigHandler.configs方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。