本文整理汇总了Java中cpw.mods.fml.client.FMLFileResourcePack类的典型用法代码示例。如果您正苦于以下问题:Java FMLFileResourcePack类的具体用法?Java FMLFileResourcePack怎么用?Java FMLFileResourcePack使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FMLFileResourcePack类属于cpw.mods.fml.client包,在下文中一共展示了FMLFileResourcePack类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getCustomResourcePackClass
import cpw.mods.fml.client.FMLFileResourcePack; //导入依赖的package包/类
@Override
public Class<?> getCustomResourcePackClass()
{
if (getSource().isDirectory())
{
return FMLFolderResourcePack.class;
}
else
{
return FMLFileResourcePack.class;
}
}
开发者ID:SchrodingersSpy,项目名称:TRHS_Club_Mod_2016,代码行数:13,代码来源:ForgeModContainer.java
示例2: getCustomResourcePackClass
import cpw.mods.fml.client.FMLFileResourcePack; //导入依赖的package包/类
@Override
public Class<?> getCustomResourcePackClass() {
return getSource().isDirectory() ? FMLFolderResourcePack.class : FMLFileResourcePack.class;
}
开发者ID:4Space,项目名称:4Space-5,代码行数:5,代码来源:NEIModContainer.java
示例3: getCustomResourcePackClass
import cpw.mods.fml.client.FMLFileResourcePack; //导入依赖的package包/类
@Override
public Class<?> getCustomResourcePackClass()
{
return getSource().isDirectory() ? FMLFolderResourcePack.class : FMLFileResourcePack.class;
}
开发者ID:SchrodingersSpy,项目名称:TRHS_Club_Mod_2016,代码行数:6,代码来源:FMLContainer.java
示例4: start
import cpw.mods.fml.client.FMLFileResourcePack; //导入依赖的package包/类
public static void start(File coremodLocation) {
LoadingFrame.setSystemLAF();
coreModLocation = coremodLocation;
if (coreModLocation == null)
coreModLocation = new File("./../bin/");
// Assume this is a dev environment, and that the build dir is in bin, and the test dir has the same parent as
// the bin dir...
ModMetadata md = new ModMetadata();
md.name = Lib.Mod.NAME;
md.modId = Lib.Mod.ID;
modContainer = new DummyModContainer(md) {
@Override
public Class<?> getCustomResourcePackClass() {
return FMLFileResourcePack.class;
}
@Override
public File getSource() {
return coreModLocation;
}
@Override
public String getModId() {
return Lib.Mod.ID;
}
};
File fileOld = new File("./config/betterloadingscreen.cfg");
File fileNew = new File("./config/BetterLoadingScreen/config.cfg");
if (fileOld.exists())
cfg = new Configuration(fileOld);
else
cfg = new Configuration(fileNew);
boolean useMinecraft = isClient();
if (useMinecraft) {
String comment =
"Whether or not to use minecraft's display to show the progress. This looks better, but there is a possibilty of not being ";
comment += "compatible, so if you do have any strange crash reports or compatability issues, try setting this to false";
useMinecraft = cfg.getBoolean("useMinecraft", "general", true, comment);
}
connectExternally = cfg.getBoolean("connectExternally", "general", true, "If this is true, it will conect to drone.io to get a changelog");
playSound = cfg.getBoolean("playSound", "general", true, "Play a sound after minecraft has finished starting up");
if (useMinecraft)
displayer = new MinecraftDisplayerWrapper();
else if (!GraphicsEnvironment.isHeadless())
displayer = new FrameDisplayer();
else
displayer = new LoggingDisplayer();
displayer.open(cfg);
cfg.save();
}
开发者ID:AlexIIL,项目名称:BetterLoadingScreen_1.7,代码行数:57,代码来源:ProgressDisplayer.java
示例5: getCustomResourcePackClass
import cpw.mods.fml.client.FMLFileResourcePack; //导入依赖的package包/类
@Override
public Class<?> getCustomResourcePackClass() {
return getSource().isDirectory() ? FMLFolderResourcePack.class : FMLFileResourcePack.class;
}
开发者ID:diesieben07,项目名称:SevenCommons,代码行数:5,代码来源:SevenCommons.java
注:本文中的cpw.mods.fml.client.FMLFileResourcePack类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论