Java Code Examples for net.minecraftforge.fml.relauncher.FMLInjectionData.data()

The following are Jave code examples for showing how to use data() of the net.minecraftforge.fml.relauncher.FMLInjectionData class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: CodeChickenCore   File: CodeChickenCorePlugin.java   Source Code and License Vote up 5 votes
public CodeChickenCorePlugin() {
    if (minecraftDir != null) {
        return;//get called twice, once for IFMLCallHook
    }

    minecraftDir = (File) FMLInjectionData.data()[6];
    currentMcVersion = (String) FMLInjectionData.data()[4];

    loadConfig();
}
 
Example 2
Project: CodeChickenCore   File: CCUpdateChecker.java   Source Code and License Vote up 4 votes
public static String mcVersion() {
    return (String) FMLInjectionData.data()[4];
}
 
Example 3
Project: CodeChickenLib   File: CommonUtils.java   Source Code and License Vote up 4 votes
public static File getMinecraftDir() {
    return (File) FMLInjectionData.data()[6];
}
 
Example 4
Project: Gui_Desiner   File: GuiLoader.java   Source Code and License Vote up 4 votes
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");
}
 
Example 5
Project: Gui_Desiner   File: Saver.java   Source Code and License Vote up 4 votes
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");
}
 
Example 6
Project: Gui_Desiner   File: Loader.java   Source Code and License Vote up 4 votes
public Loader(String name) {
    File mcDir = (File) FMLInjectionData.data()[6];
    folder = new File(mcDir, "guis");
    file = new File(folder, name + ".gui");
}
 
Example 7
Project: Gui_Desiner   File: GuiLoader.java   Source Code and License Vote up 4 votes
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");
}
 
Example 8
Project: Gui_Desiner   File: Saver.java   Source Code and License Vote up 4 votes
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");
}
 
Example 9
Project: Gui_Desiner   File: Loader.java   Source Code and License Vote up 4 votes
public Loader(String name) {
    File mcDir = (File) FMLInjectionData.data()[6];
    folder = new File(mcDir, "guis");
    file = new File(folder, name + ".gui");
}