Search in sources :

Example 1 with PrismaticPaste

use of pcl.openlights.items.PrismaticPaste in project OpenLights by PC-Logix.

the class OpenLights method preInit.

@EventHandler
public void preInit(FMLPreInitializationEvent event) {
    cfg = new Config(new Configuration(event.getSuggestedConfigurationFile()));
    if ((event.getSourceFile().getName().endsWith(".jar") || debug) && event.getSide().isClient() && cfg.enableMUD) {
        try {
            Class.forName("pcl.openprinter.mud.ModUpdateDetector").getDeclaredMethod("registerMod", ModContainer.class, URL.class, URL.class).invoke(null, FMLCommonHandler.instance().findContainerFor(this), new URL("http://PC-Logix.com/OpenLights/get_latest_build.php"), new URL("http://PC-Logix.com/OpenLights/changelog.txt"));
        } catch (Throwable e) {
        //e.printStackTrace();
        }
    }
    //GameRegistry.registerBlock(openLightBlock, "openlights.openlight");
    GameRegistry.registerBlock(openLightBlock, MultiItemBlock.class, "openlights.openlight");
    for (int ix = 0; ix < 16; ix++) {
        ItemStack multiBlockStack = new ItemStack(openLightBlock, 1, ix);
    }
    GameRegistry.registerTileEntity(OpenLightTE.class, "OpenLightTE");
    //openLightBlock.setCreativeTab(li.cil.oc.api.CreativeTab.instance);
    prismaticPaste = new PrismaticPaste();
    GameRegistry.registerItem(prismaticPaste, "openlights.prismaticPaste");
}
Also used : Configuration(net.minecraftforge.common.config.Configuration) ModContainer(cpw.mods.fml.common.ModContainer) PrismaticPaste(pcl.openlights.items.PrismaticPaste) ItemStack(net.minecraft.item.ItemStack) URL(java.net.URL) EventHandler(cpw.mods.fml.common.Mod.EventHandler)

Aggregations

EventHandler (cpw.mods.fml.common.Mod.EventHandler)1 ModContainer (cpw.mods.fml.common.ModContainer)1 URL (java.net.URL)1 ItemStack (net.minecraft.item.ItemStack)1 Configuration (net.minecraftforge.common.config.Configuration)1 PrismaticPaste (pcl.openlights.items.PrismaticPaste)1