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