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");
}
Aggregations