本文整理汇总了Java中cpw.mods.fml.common.Loader.instance方法的典型用法代码示例。如果您正苦于以下问题:Java Loader.instance方法的具体用法?Java Loader.instance怎么用?Java Loader.instance使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cpw.mods.fml.common.Loader
的用法示例。
在下文中一共展示了Loader.instance方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: DetectNEI
import cpw.mods.fml.common.Loader; //导入方法依赖的package包/类
public static void DetectNEI()
{
Loader.instance();
if (Loader.isModLoaded("NotEnoughItems"))
{
LogHelper.info("Detected NEI for compatability");
NEI = true;
}
else
{
LogHelper.info("NEI was not detected for mod compatibility");
}
}
示例2: DetectThermalExpansion
import cpw.mods.fml.common.Loader; //导入方法依赖的package包/类
public static void DetectThermalExpansion()
{
Loader.instance();
if (Loader.isModLoaded("ThermalExpansion"))
{
LogHelper.info("Detected Thermal Expansion for mod compatibility");
ThermalExpansion = true;
}
else
{
LogHelper.info("Thermal Expansion was not detected for mod compatibility");
}
}
示例3: DetectUBC
import cpw.mods.fml.common.Loader; //导入方法依赖的package包/类
public static void DetectUBC()
{
Loader.instance();
if (Loader.isModLoaded("Underground Biomes"))
{
LogHelper.info("Detected Underground Biomes for mod compatibility");
UBC = true;
}
else
{
LogHelper.info("Underground Biomes mod was not detected for mod compatibility");
}
}
示例4: DetectExtraUtilities
import cpw.mods.fml.common.Loader; //导入方法依赖的package包/类
public static void DetectExtraUtilities()
{
Loader.instance();
if (Loader.isModLoaded("ExtraUtilities"))
{
LogHelper.info("Detected Extra Utilities for mod compatibility");
ExtraUtilities = true;
}
else
{
LogHelper.info("Extra Utilities was not detected");
LogHelper.info("Compat features not enabled for Extra Utilities will not be enabled");
}
}
示例5: DetectProjectE
import cpw.mods.fml.common.Loader; //导入方法依赖的package包/类
/**
* This method detects whether or not the mod "ProjectE" is running
*/
public static void DetectProjectE()
{
Loader.instance();
if (Loader.isModLoaded("ProjectE"))
{
LogHelper.info("Detected ProjectE for mod compatibility");
ProjectE = true;
}
else
{
LogHelper.info("ProjectE was not detected");
LogHelper.info("Compat features not enabled for ProjectE will not be enabled");
}
}