本文整理汇总了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);
}
}
}
示例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);
});
}
示例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");
}
示例4: postInit
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; //导入依赖的package包/类
@EventHandler
public void postInit(FMLPostInitializationEvent event) {
proxy.postInit(event);
if (config.hasChanged()) {
config.save();
}
}
示例5: afterModsLoaded
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; //导入依赖的package包/类
@EventHandler
public void afterModsLoaded(FMLPostInitializationEvent event)
{
if (Loader.isModLoaded(Compats.IC2)) {
ItemsCG.loadRecipes();
}
}
示例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);
}
示例7: postInit
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; //导入依赖的package包/类
public void postInit(FMLPostInitializationEvent event)
{
if (config.hasChanged())
{
config.save();
}
}
示例8: postInit
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; //导入依赖的package包/类
@Override
public void postInit(FMLPostInitializationEvent event) {
super.postInit(event);
}
示例9: postInit
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; //导入依赖的package包/类
public void postInit(FMLPostInitializationEvent event) {
// Config.postInit();
}
示例10: postinit
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; //导入依赖的package包/类
public void postinit(FMLPostInitializationEvent e) {
super.postinit(e);
}
示例11: postInit
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; //导入依赖的package包/类
@Override
public void postInit(FMLPostInitializationEvent event) {
super.postInit(event);
}
示例12: postInit
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; //导入依赖的package包/类
public void postInit(FMLPostInitializationEvent e) {
// NO OP
}
示例13: postInit
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; //导入依赖的package包/类
@EventHandler
public void postInit(FMLPostInitializationEvent event) {
proxy.postInit(event);
}
示例14: postInit
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; //导入依赖的package包/类
@EventHandler
public void postInit(final @Nonnull FMLPostInitializationEvent event) {
if (proxy!=null)
proxy.postInit(event);
}
示例15: postInit
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; //导入依赖的package包/类
@Override
public void postInit(FMLPostInitializationEvent e) {
super.postInit(e);
}