本文整理汇总了Java中cpw.mods.fml.common.event.FMLPreInitializationEvent类的典型用法代码示例。如果您正苦于以下问题:Java FMLPreInitializationEvent类的具体用法?Java FMLPreInitializationEvent怎么用?Java FMLPreInitializationEvent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
FMLPreInitializationEvent类属于cpw.mods.fml.common.event包,在下文中一共展示了FMLPreInitializationEvent类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: preInit
import cpw.mods.fml.common.event.FMLPreInitializationEvent; //导入依赖的package包/类
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
ConfigurationHandler.INSTANCE.init(new File(event.getModConfigurationDirectory().getAbsolutePath() + File.separator + Reference.MOD_ID + ".cfg"));
GameRegistry.registerWorldGenerator(new EtFuturumWorldGenerator(), 0);
GameRegistry.registerWorldGenerator(new EtFuturumNetherGenerator(), 1);
ModBlocks.init();
ModItems.init();
ModEnchantments.init();
OceanMonument.makeMap();
NetworkRegistry.INSTANCE.registerGuiHandler(instance, proxy);
networkWrapper = NetworkRegistry.INSTANCE.newSimpleChannel(Reference.MOD_ID);
networkWrapper.registerMessage(ArmourStandInteractHandler.class, ArmourStandInteractMessage.class, 0, Side.SERVER);
networkWrapper.registerMessage(BlackHeartParticlesHandler.class, BlackHeartParticlesMessage.class, 1, Side.CLIENT);
networkWrapper.registerMessage(SetPlayerModelHandler.class, SetPlayerModelMessage.class, 2, Side.CLIENT);
}
示例2: addProps
import cpw.mods.fml.common.event.FMLPreInitializationEvent; //导入依赖的package包/类
@Override
public void addProps(FMLPreInitializationEvent event, Configuration config)
{
this.Enabled = config.get(this.nameInternal, "Am I enabled? (default true)", true).getBoolean(true);
this.namePublic = config.get(this.nameInternal, "What's my name?", this.nameInternal).getString();
this.DmgMin = config.get(this.nameInternal, "What damage am I dealing, at least? (default 1)", 1).getInt();
this.DmgMax = config.get(this.nameInternal, "What damage am I dealing, tops? (default 3)", 3).getInt();
this.Speed = config.get(this.nameInternal, "How fast are my projectiles? (default 2.0 BPT (Blocks Per Tick))", 2.0).getDouble();
this.Kickback = (byte) config.get(this.nameInternal, "How hard do I kick the user back when firing? (default 1)", 1).getInt();
this.Spread = (float) config.get(this.nameInternal, "How accurate am I? (default 10 spread)", 10).getDouble();
this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default true. They'll probably figure it out.)", true).getBoolean(true);
}
示例3: addProps
import cpw.mods.fml.common.event.FMLPreInitializationEvent; //导入依赖的package包/类
@Override
public void addProps(FMLPreInitializationEvent event, Configuration config)
{
this.Enabled = config.get(this.nameInternal, "Am I enabled? (default true)", true).getBoolean(true);
this.namePublic = config.get(this.nameInternal, "What's my name?", this.nameInternal).getString();
this.DmgMin = config.get(this.nameInternal, "What damage am I dealing, at least? (default 10)", 10).getInt();
this.DmgMax = config.get(this.nameInternal, "What damage am I dealing, tops? (default 16)", 16).getInt();
this.Speed = config.get(this.nameInternal, "How fast are my projectiles? (default 2.5 BPT (Blocks Per Tick))", 2.5).getDouble();
this.Knockback = config.get(this.nameInternal, "How hard do I knock the target back when firing? (default 1)", 1).getInt();
this.Cooldown = config.get(this.nameInternal, "How long until I can fire again? (default 8 ticks)", 8).getInt();
this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default false.)", false).getBoolean(true);
}
示例4: addProps
import cpw.mods.fml.common.event.FMLPreInitializationEvent; //导入依赖的package包/类
@Override
public void addProps(FMLPreInitializationEvent event, Configuration config)
{
this.Enabled = config.get(this.nameInternal, "Am I enabled? (default true)", true).getBoolean(true);
this.namePublic = config.get(this.nameInternal, "What's my name?", this.nameInternal).getString();
this.DmgMin = config.get(this.nameInternal, "What damage am I dealing, at least? (default 1)", 1).getInt();
this.DmgMax = config.get(this.nameInternal, "What damage am I dealing, tops? (default 3)", 3).getInt();
this.Speed = config.get(this.nameInternal, "How fast are my projectiles? (default 2.5 BPT (Blocks Per Tick))", 2.5).getDouble();
this.Weakness_Strength = config.get(this.nameInternal, "How strong is my Weakness effect? (default 2)", 2).getInt();
this.Weakness_Duration = config.get(this.nameInternal, "How long does my Weakness effect last? (default 40 ticks)", 40).getInt();
this.Nausea_Duration = config.get(this.nameInternal, "How long does my Nausea effect last? (default 40 ticks)", 40).getInt();
this.Hunger_Strength = config.get(this.nameInternal, "How strong is my Hunger effect? (default 2)", 2).getInt();
this.Hunger_Duration = config.get(this.nameInternal, "How long does my Hunger effect last? (default 40 ticks)", 40).getInt();
this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default true.)", true).getBoolean(true);
}
示例5: addProps
import cpw.mods.fml.common.event.FMLPreInitializationEvent; //导入依赖的package包/类
@Override
public void addProps(FMLPreInitializationEvent event, Configuration config)
{
this.Enabled = config.get(this.nameInternal, "Am I enabled? (default true)", true).getBoolean(true);
this.namePublic = config.get(this.nameInternal, "What's my name?", this.nameInternal).getString();
this.DmgMin = config.get(this.nameInternal, "What damage am I dealing, at least? (default 8)", 8).getInt();
this.DmgMax = config.get(this.nameInternal, "What damage am I dealing, tops? (default 16)", 16).getInt();
this.Speed = config.get(this.nameInternal, "How fast are my projectiles? (default 5.0 BPT (Blocks Per Tick))", 5.0).getDouble();
this.Kickback = (byte) config.get(this.nameInternal, "How hard do I kick the user back when firing? (default 3)", 3).getInt();
this.Cooldown = config.get(this.nameInternal, "How long until I can fire again? (default 40 ticks. That's 2 sec)", 40).getInt();
this.PassThroughMax = config.get(this.nameInternal, "Through how many entities and blocks can I punch, tops? (default 5)", 5).getInt();
this.MaxTicks = config.get(this.nameInternal, "How long does my beam exist, tops? (default 60 ticks)", 60).getInt();
this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default true.)", true).getBoolean(true);
}
示例6: addProps
import cpw.mods.fml.common.event.FMLPreInitializationEvent; //导入依赖的package包/类
@Override
public void addProps(FMLPreInitializationEvent event, Configuration config)
{
this.Enabled = config.get(this.nameInternal, "Am I enabled? (default true)", true).getBoolean(true);
this.namePublic = config.get(this.nameInternal, "What's my name?", this.nameInternal).getString();
this.DmgMin = config.get(this.nameInternal, "What damage am I dealing, at least? (default 4)", 4).getInt();
this.DmgMax = config.get(this.nameInternal, "What damage am I dealing, tops? (default 8)", 8).getInt();
this.Speed = config.get(this.nameInternal, "How fast are my projectiles? (default 1.7 BPT (Blocks Per Tick))", 1.7).getDouble();
this.Cooldown = config.get(this.nameInternal, "How long until I can fire again? (default 15 ticks)", 15).getInt();
this.Wither_Strength = config.get(this.nameInternal, "How strong is my Wither effect? (default 1)", 1).getInt();
this.Wither_Duration = config.get(this.nameInternal, "How long does my Wither effect last? (default 61 ticks)", 61).getInt();
this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default true.)", true).getBoolean(true);
}
示例7: addProps
import cpw.mods.fml.common.event.FMLPreInitializationEvent; //导入依赖的package包/类
@Override
public void addProps(FMLPreInitializationEvent event, Configuration config)
{
this.Enabled = config.get(this.nameInternal, "Am I enabled? (default true)", true).getBoolean(true);
this.namePublic = config.get(this.nameInternal, "What's my name?", this.nameInternal).getString();
this.DmgMin = config.get(this.nameInternal, "What damage am I dealing, at least? (default 7)", 7).getInt();
this.DmgMax = config.get(this.nameInternal, "What damage am I dealing, tops? (default 13)", 13).getInt();
this.DmgMagicMin = config.get(this.nameInternal, "What magic damage am I dealing, at least? (default 6)", 6).getInt();
this.DmgMagicMax = config.get(this.nameInternal, "What magic damage am I dealing, tops? (default 14)", 14).getInt();
this.Speed = config.get(this.nameInternal, "How fast are my projectiles? (default 3.0 BPT (Blocks Per Tick))", 3.0).getDouble();
this.Knockback = config.get(this.nameInternal, "How hard do I knock the target back when firing? (default 2)", 2).getInt();
this.Kickback = (byte) config.get(this.nameInternal, "How hard do I kick the user back when firing? (default 6)", 6).getInt();
this.Cooldown = config.get(this.nameInternal, "How long until I can fire again? (default 60 ticks)", 60).getInt();
this.Wither_Strength = config.get(this.nameInternal, "How strong is my Wither effect? (default 3)", 3).getInt();
this.Wither_Duration = config.get(this.nameInternal, "How long does my Wither effect last? (default 61 ticks)", 61).getInt();
this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default false. Too high-power for them.)", false).getBoolean();
}
示例8: addProps
import cpw.mods.fml.common.event.FMLPreInitializationEvent; //导入依赖的package包/类
@Override
public void addProps(FMLPreInitializationEvent event, Configuration config)
{
this.Enabled = config.get(this.nameInternal, "Am I enabled? (default true)", true).getBoolean(true);
this.namePublic = config.get(this.nameInternal, "What's my name?", this.nameInternal).getString();
this.DmgMin = config.get(this.nameInternal, "What damage am I dealing, at least? (default 20)", 20).getInt();
this.DmgMax = config.get(this.nameInternal, "What damage am I dealing, tops? (default 30)", 30).getInt();
this.Speed = config.get(this.nameInternal, "How fast are my projectiles? (default 3.0 BPT (Blocks Per Tick))", 3.0).getDouble();
this.Knockback = config.get(this.nameInternal, "How hard do I knock the target back when firing? (default 2)", 2).getInt();
this.FireDur = config.get(this.nameInternal, "How long is the target on fire? (default 15 sec)", 15).getInt();
this.FireDurInGround = config.get(this.nameInternal, "How long do I keep burning when stuck in the ground? (default 10 sec)", 10).getInt();
this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default false)", false).getBoolean(true);
}
示例9: addProps
import cpw.mods.fml.common.event.FMLPreInitializationEvent; //导入依赖的package包/类
@Override
public void addProps(FMLPreInitializationEvent event, Configuration config)
{
this.Enabled = config.get(this.nameInternal, "Am I enabled? (default true)", true).getBoolean(true);
this.namePublic = config.get(this.nameInternal, "What's my name?", this.nameInternal).getString();
this.DmgMin = config.get(this.nameInternal, "What damage are my rockets dealing, at least? (default 4)", 4).getInt();
this.DmgMax = config.get(this.nameInternal, "What damage are my rockets dealing, tops? (default 6)", 6).getInt();
this.Speed = config.get(this.nameInternal, "How fast are my projectiles? (default 1.5 BPT (Blocks Per Tick))", 1.5).getDouble();
this.Kickback = (byte) config.get(this.nameInternal, "How hard do I kick the user back when firing? (default 3)", 3).getInt();
this.Cooldown = config.get(this.nameInternal, "How long until I can fire again? (default 20 ticks)", 20).getInt();
this.FireDur = config.get(this.nameInternal, "How long is what I hit on fire? (default 6s)", 6).getInt();
this.ExplosionSize = config.get(this.nameInternal, "How big are my explosions? (default 1.0 blocks, for no terrain damage. TNT is 4.0 blocks)", 1.0).getDouble();
this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default true.)", true).getBoolean(true);
}
示例10: addProps
import cpw.mods.fml.common.event.FMLPreInitializationEvent; //导入依赖的package包/类
@Override
public void addProps(FMLPreInitializationEvent event, Configuration config)
{
this.Enabled = config.get(this.nameInternal, "Am I enabled? (default true)", true).getBoolean(true);
this.namePublic = config.get(this.nameInternal, "What's my name?", this.nameInternal).getString();
this.DmgMin = config.get(this.nameInternal, "What damage am I dealing with a direct hit, at least? (default 120)", 120).getInt();
this.DmgMax = config.get(this.nameInternal, "What damage am I dealing with a direct hit, tops? (default 150)", 150).getInt();
this.explosionSelf = config.get(this.nameInternal, "How big are my explosions when leaving the barrel? (default 4.0 blocks. TNT is 4.0 blocks)", 4.0).getDouble();
this.explosionTarget = config.get(this.nameInternal, "How big are my explosions when hitting a target? (default 8.0 blocks. TNT is 4.0 blocks)", 8.0).getDouble();
this.Kickback = (byte) config.get(this.nameInternal, "How hard do I kick the user back when firing? (default 30)", 30).getInt();
this.dmgTerrain = config.get(this.nameInternal, "Can I damage terrain, when in player hands? (default true)", true).getBoolean(true);
this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default false. Too high-power and suicidal.)", false).getBoolean();
}
示例11: addProps
import cpw.mods.fml.common.event.FMLPreInitializationEvent; //导入依赖的package包/类
@Override
public void addProps(FMLPreInitializationEvent event, Configuration config)
{
this.Enabled = config.get(this.nameInternal, "Am I enabled? (default true)", true).getBoolean(true);
this.namePublic = config.get(this.nameInternal, "What's my name?", this.nameInternal).getString();
this.DmgMin = config.get(this.nameInternal, "What damage am I dealing, at least? (default 1)", 1).getInt();
this.DmgMax = config.get(this.nameInternal, "What damage am I dealing, tops? (default 2)", 2).getInt();
this.Speed = config.get(this.nameInternal, "How fast are my projectiles? (default 1.5 BPT (Blocks Per Tick))", 1.5).getDouble();
this.Kickback = (byte) config.get(this.nameInternal, "How hard do I kick the user back when firing? (default 2)", 2).getInt();
this.Cooldown = config.get(this.nameInternal, "How long until I can fire again? (default 15 ticks)", 15).getInt();
this.Slow_Strength = config.get(this.nameInternal, "How strong is my Slowness effect? (default 3)", 3).getInt();
this.Slow_Duration = config.get(this.nameInternal, "How long does my Slowness effect last? (default 40 ticks)", 40).getInt();
this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default true)", true).getBoolean(true);
}
示例12: addProps
import cpw.mods.fml.common.event.FMLPreInitializationEvent; //导入依赖的package包/类
@Override
public void addProps(FMLPreInitializationEvent event, Configuration config)
{
this.Enabled = config.get(this.nameInternal, "Am I enabled? (default true)", true).getBoolean(true);
this.namePublic = config.get(this.nameInternal, "What's my name?", this.nameInternal).getString();
this.DmgMin = config.get(this.nameInternal, "What damage am I dealing per thorn, at least? (default 1)", 1).getInt();
this.DmgMax = config.get(this.nameInternal, "What damage am I dealing per thorn, tops? (default 2)", 2).getInt();
this.Speed = config.get(this.nameInternal, "How fast are my projectiles? (default 2.0 BPT (Blocks Per Tick))", 2.0).getDouble();
this.MaxTicks = config.get(this.nameInternal, "How long do my projectiles stick around, tops? (default 6000 ticks. That's 5 min.)", 6000).getInt();
this.Kickback = (byte) config.get(this.nameInternal, "How hard do I kick the user back when firing? (default 2)", 2).getInt();
this.Cooldown = config.get(this.nameInternal, "How long until I can fire again? (default 20 ticks)", 20).getInt();
this.ProxyCheck = config.get(this.nameInternal, "How long does my projectile wait inbetween each proximity check? (default 20 ticks)", 20).getInt();
this.ThornAmount = config.get(this.nameInternal, "How many thorns does my projectile burst into? (default 32)", 32).getInt();
this.triggerDist = config.get(this.nameInternal, "What is the trigger distance of my projectiles? (default 2.0 blocks)", 2.0).getDouble();
this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default false)", false).getBoolean();
}
示例13: addProps
import cpw.mods.fml.common.event.FMLPreInitializationEvent; //导入依赖的package包/类
@Override
public void addProps(FMLPreInitializationEvent event, Configuration config)
{
this.Enabled = config.get(this.nameInternal, "Am I enabled? (default true)", true).getBoolean(true);
this.namePublic = config.get(this.nameInternal, "What's my name?", this.nameInternal).getString();
this.DmgMin = config.get(this.nameInternal, "What damage am I dealing, at least? (default 4)", 4).getInt();
this.DmgMax = config.get(this.nameInternal, "What damage am I dealing, tops? (default 6)", 6).getInt();
this.Speed = config.get(this.nameInternal, "How fast are my projectiles? (default 1.3 BPT (Blocks Per Tick))", 1.3).getDouble();
this.Knockback = config.get(this.nameInternal, "How hard do I knock the target back when firing? (default 2)", 2).getInt();
this.Kickback = (byte) config.get(this.nameInternal, "How hard do I kick the user back when firing? (default 1)", 1).getInt();
this.Cooldown = config.get(this.nameInternal, "How long until I can fire again? (default 10 ticks)", 10).getInt();
this.FireDur = config.get(this.nameInternal, "How long is what I hit on fire? (default 6s)", 6).getInt();
this.ExplosionSize = config.get(this.nameInternal, "How big are my explosions? (default 1.0 blocks, for no terrain damage. TNT is 4.0 blocks)", 1.0).getDouble();
this.dmgTerrain = config.get(this.nameInternal, "Can I damage terrain, when in player hands? (default true)", true).getBoolean(true);
this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default false. A bit too high-power for them.)", false).getBoolean();
}
示例14: addProps
import cpw.mods.fml.common.event.FMLPreInitializationEvent; //导入依赖的package包/类
@Override
public void addProps(FMLPreInitializationEvent event, Configuration config)
{
this.Enabled = config.get(this.nameInternal, "Am I enabled? (default true)", true).getBoolean(true);
this.namePublic = config.get(this.nameInternal, "What's my name?", this.nameInternal).getString();
this.DmgMin = config.get(this.nameInternal, "What damage am I dealing, at least? (default 16)", 16).getInt();
this.DmgMax = config.get(this.nameInternal, "What damage am I dealing, tops? (default 24)", 24).getInt();
this.Speed = config.get(this.nameInternal, "How fast are my projectiles? (default 5.0 BPT (Blocks Per Tick))", 5.0).getDouble();
this.MaxTicks = config.get(this.nameInternal, "How long does my projectile exist, tops? (default 40 ticks)", 40).getInt();
this.Kickback = (byte) config.get(this.nameInternal, "How hard do I kick the user back when firing? (default 1)", 1).getInt();
this.Cooldown = config.get(this.nameInternal, "How long until I can fire again? (default 20 ticks)", 20).getInt();
this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default false)", false).getBoolean(true);
}
示例15: addProps
import cpw.mods.fml.common.event.FMLPreInitializationEvent; //导入依赖的package包/类
@Override
public void addProps(FMLPreInitializationEvent event, Configuration config)
{
this.Enabled = config.get(this.nameInternal, "Am I enabled? (default true)", true).getBoolean(true);
this.namePublic = config.get(this.nameInternal, "What's my name?", this.nameInternal).getString();
this.DmgMin = config.get(this.nameInternal, "What damage are my arrows dealing, at least? (default 2)", 2).getInt();
this.DmgMax = config.get(this.nameInternal, "What damage are my arrows dealing, tops? (default 10)", 10).getInt();
this.Speed = config.get(this.nameInternal, "How fast are my projectiles? (default 1.5 BPT (Blocks Per Tick))", 1.5).getDouble();
this.Kickback = (byte) config.get(this.nameInternal, "How hard do I kick the user back when firing? (default 3)", 3).getInt();
this.Cooldown = config.get(this.nameInternal, "How long until I can fire again? (default 20 ticks)", 20).getInt();
this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default true.)", true).getBoolean(true);
}