本文整理汇总了Java中me.ichun.mods.ichunutil.common.core.config.ConfigHandler类的典型用法代码示例。如果您正苦于以下问题:Java ConfigHandler类的具体用法?Java ConfigHandler怎么用?Java ConfigHandler使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ConfigHandler类属于me.ichun.mods.ichunutil.common.core.config包,在下文中一共展示了ConfigHandler类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: save
import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入依赖的package包/类
public void save()
{
ConfigBase config = null;
for(Tree tree : trees)
{
if(tree.element != null)
{
tree.config.save();
break;
}
}
if(ConfigHandler.configKeybind.hasChanged())
{
ConfigHandler.configKeybind.save();
}
}
示例2: 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;
}
示例3: 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("=============================================================");
}
}
示例4: preInit
import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入依赖的package包/类
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event)
{
resourceHelper = new ResourceHelper(new File(event.getModConfigurationDirectory().getParent(), "/mods/clef"));
config = ConfigHandler.registerConfig(new Config(event.getSuggestedConfigurationFile()));
proxy.preInitMod();
UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(MOD_NAME, iChunUtil.VERSION_OF_MC, VERSION, false));
}
示例5: preInit
import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入依赖的package包/类
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event)
{
config = ConfigHandler.registerConfig(new Config(event.getSuggestedConfigurationFile()));
eventHandlerClient = new EventHandlerClient();
MinecraftForge.EVENT_BUS.register(eventHandlerClient);
RenderingRegistry.registerEntityRenderingHandler(EntityGib.class, new RenderGib.RenderFactory());
UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(MOD_NAME, iChunUtil.VERSION_OF_MC, VERSION, true));
}
示例6: preInit
import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入依赖的package包/类
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event)
{
config = ConfigHandler.registerConfig(new Config(event.getSuggestedConfigurationFile()));
eventHandler = new EventHandler();
MinecraftForge.EVENT_BUS.register(eventHandler);
UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(MOD_NAME, iChunUtil.VERSION_OF_MC, VERSION, true));
BooleanSupplier oldAcidEyesBooleanSupplier = HeadBase.acidEyesBooleanSupplier;
HeadBase.acidEyesBooleanSupplier = () -> (GooglyEyes.config.acidTripEyes == 1 || oldAcidEyesBooleanSupplier.getAsBoolean());
iChunUtil.config.reveal("aggressiveHeadTracking", "horseEasterEgg");
}
示例7: preInit
import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入依赖的package包/类
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event)
{
config = ConfigHandler.registerConfig(new Config(event.getSuggestedConfigurationFile()));
proxy.preInitMod();
UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(MOD_NAME, iChunUtil.VERSION_OF_MC, VERSION, false));
}
示例8: onPreInit
import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入依赖的package包/类
@Mod.EventHandler
public void onPreInit(FMLPreInitializationEvent event)
{
config = ConfigHandler.registerConfig(new Config(event.getSuggestedConfigurationFile()));
proxy.preInit();
channel = new PacketChannel(MOD_NAME, PacketBark.class, PacketSpawnParticles.class, PacketKeyState.class);
UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(MOD_NAME, iChunUtil.VERSION_OF_MC, VERSION, false));
}
示例9: preInit
import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入依赖的package包/类
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event)
{
config = ConfigHandler.registerConfig(new Config(event.getSuggestedConfigurationFile()));
proxy.preInit();
UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(MOD_NAME, iChunUtil.VERSION_OF_MC, VERSION, false));
}
示例10: preInit
import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入依赖的package包/类
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event)
{
proxy.preInit();
if(FMLCommonHandler.instance().getEffectiveSide().isClient())
{
config = ConfigHandler.registerConfig(new Config(new File(ResourceHelper.getConfigDir(), "config.cfg")));
}
UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(MOD_NAME, iChunUtil.VERSION_OF_MC, VERSION, false));
}
示例11: preInit
import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入依赖的package包/类
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event)
{
config = ConfigHandler.registerConfig(new Config(event.getSuggestedConfigurationFile()));
eventHandler = new EventHandlerClient();
MinecraftForge.EVENT_BUS.register(eventHandler);
RenderingRegistry.registerEntityRenderingHandler(EntityWaypoint.class, new RenderWaypoint.RenderFactory());
UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(MOD_NAME, iChunUtil.VERSION_OF_MC, VERSION, true));
}
示例12: preInit
import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入依赖的package包/类
@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
config = ConfigHandler.registerConfig(new Config(event.getSuggestedConfigurationFile()));
UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(MOD_NAME, iChunUtil.VERSION_OF_MC, VERSION, true));
}
示例13: preLoad
import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入依赖的package包/类
@Mod.EventHandler
public void preLoad(FMLPreInitializationEvent event)
{
proxy.preInit();
if(FMLCommonHandler.instance().getEffectiveSide().isClient())
{
config = ConfigHandler.registerConfig(new Config(new File(ResourceHelper.getConfigDir(), "config.cfg")));
}
EventHandler handler = new EventHandler();
MinecraftForge.EVENT_BUS.register(handler);
UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(MOD_NAME, iChunUtil.VERSION_OF_MC, VERSION, false));
}
示例14: preInit
import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入依赖的package包/类
@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
config = ConfigHandler.registerConfig(new Config(event.getSuggestedConfigurationFile()));
eventHandlerClient = new EventHandlerClient();
MinecraftForge.EVENT_BUS.register(eventHandlerClient);
eventHandlerClient.initMod();
UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(MOD_NAME, iChunUtil.VERSION_OF_MC, VERSION, true));
}
示例15: preInit
import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入依赖的package包/类
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event)
{
HatHandler.hatsFolder = new File(event.getModConfigurationDirectory().getParent(), "/mods/hats");
if(!HatHandler.hatsFolder.exists())
{
HatHandler.hatsFolder.mkdirs();
}
config = ConfigHandler.registerConfig(new Config(event.getSuggestedConfigurationFile()));
proxy.preInitMod();
UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(MOD_NAME, iChunUtil.VERSION_OF_MC, VERSION, false));
}