本文整理匯總了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();
}