当前位置: 首页>>代码示例>>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;未经允许,请勿转载。