本文整理汇总了Java中cpw.mods.fml.common.Mod.PostInit类的典型用法代码示例。如果您正苦于以下问题:Java PostInit类的具体用法?Java PostInit怎么用?Java PostInit使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PostInit类属于cpw.mods.fml.common.Mod包,在下文中一共展示了PostInit类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: postInit
import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@PostInit
public static void postInit(FMLPostInitializationEvent event) {
log("Loading OreDupeFix...");
if (shouldDumpOreDict) {
dumpOreDict();
}
loadPreferredOres();
if (replaceCrafting) replaceCraftingRecipes();
if (replaceFurnace) replaceFurnaceRecipes();
if (replaceFurnaceInsensitive) replaceFurnaceRecipesInsensitive();
if (replaceDungeonLoot) replaceDungeonLoot();
// IC2 machines
try {
if (replaceIC2Compressor) replaceIC2MachineRecipes(Recipes.compressor);
if (replaceIC2Extractor) replaceIC2MachineRecipes(Recipes.extractor);
if (replaceIC2Macerator) replaceIC2MachineRecipes(Recipes.macerator);
if (replaceIC2Scrapbox) replaceIC2ScrapboxDrops();
} catch (Throwable t) {
t.printStackTrace();
FMLLog.log(Level.WARNING, "Failed to replace IC2 machine recipes: "+t.getLocalizedMessage()+", fix this (update?) or turn off replaceIC2* in config");
}
// TE machines
/*
// TODO - check TE API for 'replaceable recipes' setting
ICrucibleRecipe[] iCrucibleRecipes = CraftingManagers.crucibleManager.getRecipeList();
IFurnaceRecipe[] iFurnaceRecipes = CraftingManagers.furnaceManager.getRecipeList();
IPulverizerRecipe[] iPulverizerRecipes = CraftingManagers.pulverizerManager.getRecipeList();
ISawmillRecipe[] iSawmillRecipes = CraftingManagers.sawmillManager.getRecipeList();
ISmelterRecipe[] iSmelterRecipes = CraftingManagers.smelterManager.getRecipeList();
//ISmelterRecipe[] iFillRecipes F= CraftingManagers.transposerManager.getFillRecipeList(); // TODO
*/
}
示例2: postInit
import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@PostInit
public void postInit( FMLPostInitializationEvent event )
{
}
示例3: postInit
import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@PostInit
public void postInit(FMLPostInitializationEvent event) {
//do nothing
}
示例4: postInit
import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@PostInit // used in 1.5.2
public void postInit(FMLPostInitializationEvent event) {
// Stub Method
}
示例5: postInit
import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@PostInit
public void postInit(FMLPostInitializationEvent event) {
core.postInit();
}
示例6: postInit
import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@PostInit
public void postInit(FMLPostInitializationEvent event) {
// Stub Method
}
示例7: postInit
import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@PostInit
public void postInit(FMLPostInitializationEvent e){
GameRegistry.registerPlayerTracker(playerTracker);
GameRegistry.registerWorldGenerator(new WorldGenOres());
}
示例8: postInit
import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@PostInit
public void postInit(FMLPostInitializationEvent event)
{
}
示例9: postInit
import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@SideOnly(Side.CLIENT)
@PostInit
public void postInit(FMLPostInitializationEvent event)
{
}
示例10: postInit
import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@PostInit
public void postInit(FMLPostInitializationEvent evt) {
if (Loader.isModLoaded("ThermalExpansion")) {
ItemStack powerCoilGold = ItemRegistry.getItem("powerCoilGold", 1);
ItemStack powerCoilSilver = ItemRegistry.getItem("powerCoilSilver", 1);
ItemStack powerCoilElectrum = ItemRegistry.getItem("powerCoilElectrum", 1);
ItemStack machineFrame = ItemRegistry.getItem("machineFrame", 1);
ItemStack servo = ItemRegistry.getItem("pneumaticServo", 1);
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(makeshiftConductance), new Object[]
{
" G",
" C ",
"S ",
'G', powerCoilGold,
'C', Item.clay,
'S', powerCoilSilver
}));
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(makeshiftBattery), new Object[]
{
"ICI",
"CMC",
"IXI",
'I', "ingotIron",
'C', "ingotCopper",
'M', machineFrame,
'X', makeshiftConductance
}));
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(makeshiftUpgrade, 1, 0), new Object[]
{
" C ",
"IPI",
"SOS",
'C', "ingotCopper",
'I', "ingotIron",
'P', servo,
'S', "ingotSilver",
'O', powerCoilElectrum
}));
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(makeshiftUpgrade, 1, 1), new Object[]
{
" I ",
"IPI",
"GOG",
'C', "ingotCopper",
'I', "ingotInvar",
'P', servo,
'G', "ingotGold",
'O', powerCoilElectrum
}));
} else {
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(makeshiftBattery), new Object[]
{
"III",
"SRS",
"III",
'I', "ingotIron",
'S', Item.stick,
'R', Item.redstone
}));
}
}
示例11: postInit
import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@PostInit
public void postInit(FMLPostInitializationEvent event) {
// Stub Method
}
示例12: postInit
import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@PostInit
public void postInit(FMLPostInitializationEvent event) {
}
示例13: modsLoaded
import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@PostInit
public void modsLoaded(FMLPostInitializationEvent event)
{
}
示例14: postInit
import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@PostInit
public void postInit(FMLPostInitializationEvent event) {
// TODO: Read all the quest template files here, so they are loaded
// after all other mods pre-init (for block/item/entity ID's to be
// usable)
}
示例15: postInit
import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@PostInit
public void postInit(FMLPostInitializationEvent event) {
AddonRecipeManager.addRecipes();
AddonConfig.getConfig().save();
}