本文整理汇总了Java中net.minecraftforge.fml.relauncher.FMLInjectionData.data方法的典型用法代码示例。如果您正苦于以下问题:Java FMLInjectionData.data方法的具体用法?Java FMLInjectionData.data怎么用?Java FMLInjectionData.data使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraftforge.fml.relauncher.FMLInjectionData
的用法示例。
在下文中一共展示了FMLInjectionData.data方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: CodeChickenCorePlugin
import net.minecraftforge.fml.relauncher.FMLInjectionData; //导入方法依赖的package包/类
public CodeChickenCorePlugin() {
if (minecraftDir != null) {
return;//get called twice, once for IFMLCallHook
}
minecraftDir = (File) FMLInjectionData.data()[6];
currentMcVersion = (String) FMLInjectionData.data()[4];
loadConfig();
}
示例2: mcVersion
import net.minecraftforge.fml.relauncher.FMLInjectionData; //导入方法依赖的package包/类
public static String mcVersion() {
return (String) FMLInjectionData.data()[4];
}
示例3: getMinecraftDir
import net.minecraftforge.fml.relauncher.FMLInjectionData; //导入方法依赖的package包/类
public static File getMinecraftDir() {
return (File) FMLInjectionData.data()[6];
}
示例4: Importer
import net.minecraftforge.fml.relauncher.FMLInjectionData; //导入方法依赖的package包/类
public Importer(GuiLoader screen, String name) {
this.screen = screen;
File mcDir = (File) FMLInjectionData.data()[6];
folder = new File(mcDir, "guis");
file = new File(folder, name + ".gui");
}
示例5: Saver
import net.minecraftforge.fml.relauncher.FMLInjectionData; //导入方法依赖的package包/类
public Saver(GuiDesigner guiDesigner, String name) {
this.guiDesigner = guiDesigner;
File mcDir = (File) FMLInjectionData.data()[6];
folder = new File(mcDir, "guis");
file = new File(folder, name + ".gui");
}
示例6: Loader
import net.minecraftforge.fml.relauncher.FMLInjectionData; //导入方法依赖的package包/类
public Loader(String name) {
File mcDir = (File) FMLInjectionData.data()[6];
folder = new File(mcDir, "guis");
file = new File(folder, name + ".gui");
}