當前位置: 首頁>>代碼示例>>Java>>正文


Java FMLPostInitializationEvent類代碼示例

本文整理匯總了Java中net.minecraftforge.fml.common.event.FMLPostInitializationEvent的典型用法代碼示例。如果您正苦於以下問題:Java FMLPostInitializationEvent類的具體用法?Java FMLPostInitializationEvent怎麽用?Java FMLPostInitializationEvent使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


FMLPostInitializationEvent類屬於net.minecraftforge.fml.common.event包,在下文中一共展示了FMLPostInitializationEvent類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: postinit

import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; //導入依賴的package包/類
@Mod.EventHandler
public void postinit(FMLPostInitializationEvent event) {

	updateMobSpawning();
	updateOreGenStatus();
	
	animals = new ArrayList<>();
	for(ResourceLocation entry:ForgeRegistries.ENTITIES.getKeys()) {
		if(EntityAnimal.class.isAssignableFrom(EntityList.getClass(entry))) {
			animals.add(entry);
		}
	}
}
 
開發者ID:rafradek,項目名稱:Mods,代碼行數:14,代碼來源:TF2weapons.java

示例2: postInit

import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; //導入依賴的package包/類
@SuppressWarnings("deprecation")
@EventHandler
public void postInit(FMLPostInitializationEvent evt) {
	BiomeDictionary.getBiomes(BiomeDictionary.Type.FOREST).parallelStream().forEach(b -> {
		BlockMoonbell.addValidMoonbellBiome(b);
	});
}
 
開發者ID:Um-Mitternacht,項目名稱:Bewitchment,代碼行數:8,代碼來源:Bewitchment.java

示例3: init

import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; //導入依賴的package包/類
@EventHandler
public void init(FMLPostInitializationEvent event)
{
    ReactorInterior.registerFluid("ic2coolant", 0.66F, 0.95F, 6F, IHeatEntity.conductivityDiamond);
    ReactorInterior.registerFluid("ic2uu_matter", 0.9F, 0.99F, 18F, IHeatEntity.conductivityDiamond);

    Reactants.registerReactant("uFuel", 0, 0x46c81a);
    Reactants.registerReactant("plutonium", 1, 0xaaaaaa);
    ReactorConversions.register("uFuel", "plutonium");

    Reactants.registerSolid("uraniumFuel", "uFuel");
    Reactants.registerSolid("tinyPlutonium", "plutonium");
    Item uraniumFuel = Item.getByNameOrId("ic2:nuclear");
    if(uraniumFuel != null)
    {
        OreDictionary.registerOre("uraniumFuel", uraniumFuel);
        OreDictionary.registerOre("tinyPlutonium", new ItemStack(uraniumFuel, 1, 7));
    }
    else
    {
        OreDictionary.registerOre("tinyPlutonium", new ItemStack(Item.getByNameOrId("bigreactors:ingotMetals"), 0, 1));
    }

    Fluid fluidUranium = FluidRegistry.getFluid("uraniumfuel");
    if(fluidUranium != null)
        Reactants.registerFluid(fluidUranium, "uFuel");
}
 
開發者ID:joserobjr,項目名稱:UraniumBigReactor,代碼行數:28,代碼來源:UraniumBigReactorMod.java

示例4: postInit

import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; //導入依賴的package包/類
@EventHandler
public void postInit(FMLPostInitializationEvent event) {
	proxy.postInit(event);
	
	if (config.hasChanged()) {
           config.save();
       }
}
 
開發者ID:the-realest-stu,項目名稱:Etheric,代碼行數:9,代碼來源:Etheric.java

示例5: afterModsLoaded

import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; //導入依賴的package包/類
@EventHandler
public void afterModsLoaded(FMLPostInitializationEvent event)
{
	if (Loader.isModLoaded(Compats.IC2)) {
    	ItemsCG.loadRecipes();
	}
}
 
開發者ID:TwilightWingsStudio,項目名稱:CompositeGear,代碼行數:8,代碼來源:CompositeGear.java

示例6: postInit

import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; //導入依賴的package包/類
@Mod.EventHandler
public void postInit(FMLPostInitializationEvent event) {

    MinecraftForge.EVENT_BUS.register(new EventProgram());
    MinecraftForge.EVENT_BUS.register(new EventStatclock());
    proxy.postInit(event);

}
 
開發者ID:lucidagrande,項目名稱:statclock,代碼行數:9,代碼來源:Statclock.java

示例7: postInit

import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; //導入依賴的package包/類
public void postInit(FMLPostInitializationEvent event)
{
	if (config.hasChanged())
	{
		config.save();
	}
}
 
開發者ID:DarkMorford,項目名稱:Simple-Chunks,代碼行數:8,代碼來源:CommonProxy.java

示例8: postInit

import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; //導入依賴的package包/類
@Override
public void postInit(FMLPostInitializationEvent event) {
	super.postInit(event);
}
 
開發者ID:YoungGT,項目名稱:EasyCraft,代碼行數:5,代碼來源:ClientProxy.java

示例9: postInit

import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; //導入依賴的package包/類
public void postInit(FMLPostInitializationEvent event) {
//		Config.postInit();
	}
 
開發者ID:MinecraftModDevelopmentMods,項目名稱:BaseFoods,代碼行數:4,代碼來源:CommonProxy.java

示例10: postinit

import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; //導入依賴的package包/類
public void postinit(FMLPostInitializationEvent e) {
	super.postinit(e);
}
 
開發者ID:cjburkey01,項目名稱:MiningWells,代碼行數:4,代碼來源:ServerProxy.java

示例11: postInit

import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; //導入依賴的package包/類
@Override
public void postInit(FMLPostInitializationEvent event) {
    super.postInit(event);
}
 
開發者ID:CreeperShift,項目名稱:WirelessCharger,代碼行數:5,代碼來源:ClientProxy.java

示例12: postInit

import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; //導入依賴的package包/類
public void postInit(FMLPostInitializationEvent e) {
    // NO OP
}
 
開發者ID:raoulvdberge,項目名稱:refinedstorageaddons,代碼行數:4,代碼來源:ProxyCommon.java

示例13: postInit

import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; //導入依賴的package包/類
@EventHandler
public void postInit(FMLPostInitializationEvent event) {
	proxy.postInit(event);
}
 
開發者ID:PorPit,項目名稱:MineCamera,代碼行數:5,代碼來源:MineCamera.java

示例14: postInit

import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; //導入依賴的package包/類
@EventHandler
public void postInit(final @Nonnull FMLPostInitializationEvent event) {
	if (proxy!=null)
		proxy.postInit(event);
}
 
開發者ID:Team-Fruit,項目名稱:ServerObserver,代碼行數:6,代碼來源:ServerObserver.java

示例15: postInit

import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; //導入依賴的package包/類
@Override
public void postInit(FMLPostInitializationEvent e) {
	super.postInit(e);
}
 
開發者ID:trigg,項目名稱:Firma,代碼行數:5,代碼來源:ClientProxy.java


注:本文中的net.minecraftforge.fml.common.event.FMLPostInitializationEvent類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。