本文整理汇总了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;
}
}
示例2: getCustomResourcePackClass
import cpw.mods.fml.client.FMLFileResourcePack; //导入依赖的package包/类
@Override
public Class<?> getCustomResourcePackClass() {
return getSource().isDirectory() ? FMLFolderResourcePack.class : FMLFileResourcePack.class;
}
示例3: getCustomResourcePackClass
import cpw.mods.fml.client.FMLFileResourcePack; //导入依赖的package包/类
@Override
public Class<?> getCustomResourcePackClass()
{
return getSource().isDirectory() ? FMLFolderResourcePack.class : FMLFileResourcePack.class;
}
示例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();
}
示例5: getCustomResourcePackClass
import cpw.mods.fml.client.FMLFileResourcePack; //导入依赖的package包/类
@Override
public Class<?> getCustomResourcePackClass() {
return getSource().isDirectory() ? FMLFolderResourcePack.class : FMLFileResourcePack.class;
}