本文整理汇总了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;
}
示例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("=============================================================");
}
}
示例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);
}
}
示例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;
}
示例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();
}
}
示例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;
}
示例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;
}
}
}
示例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);
}