@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);
}
java类cpw.mods.fml.common.event.FMLPreInitializationEvent的实例源码
EtFuturum.java 文件源码
项目:connor41-etfuturum2
阅读 22
收藏 0
点赞 0
评论 0
SugarEngine.java 文件源码
项目:minecraft-quiverbow
阅读 22
收藏 0
点赞 0
评论 0
@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);
}
Crossbow_AutoImp.java 文件源码
项目:minecraft-quiverbow
阅读 24
收藏 0
点赞 0
评论 0
@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);
}
LapisCoil.java 文件源码
项目:minecraft-quiverbow
阅读 20
收藏 0
点赞 0
评论 0
@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);
}
LightningRed.java 文件源码
项目:minecraft-quiverbow
阅读 23
收藏 0
点赞 0
评论 0
@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);
}
OSP.java 文件源码
项目:minecraft-quiverbow
阅读 21
收藏 0
点赞 0
评论 0
@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);
}
OWR.java 文件源码
项目:minecraft-quiverbow
阅读 20
收藏 0
点赞 0
评论 0
@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();
}
Crossbow_Blaze.java 文件源码
项目:minecraft-quiverbow
阅读 23
收藏 0
点赞 0
评论 0
@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);
}
Mortar_Dragon.java 文件源码
项目:minecraft-quiverbow
阅读 17
收藏 0
点赞 0
评论 0
@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);
}
ERA.java 文件源码
项目:minecraft-quiverbow
阅读 34
收藏 0
点赞 0
评论 0
@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();
}
SnowCannon.java 文件源码
项目:minecraft-quiverbow
阅读 22
收藏 0
点赞 0
评论 0
@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);
}
ProximityNeedler.java 文件源码
项目:minecraft-quiverbow
阅读 32
收藏 0
点赞 0
评论 0
@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();
}
DragonBox_Quad.java 文件源码
项目:minecraft-quiverbow
阅读 26
收藏 0
点赞 0
评论 0
@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();
}
Endernymous.java 文件源码
项目:minecraft-quiverbow
阅读 20
收藏 0
点赞 0
评论 0
@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);
}
Mortar_Arrow.java 文件源码
项目:minecraft-quiverbow
阅读 21
收藏 0
点赞 0
评论 0
@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);
}
Potatosser.java 文件源码
项目:minecraft-quiverbow
阅读 20
收藏 0
点赞 0
评论 0
@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 2)", 2).getInt();
this.DmgMax = config.get(this.nameInternal, "What damage am I dealing, tops? (default 5)", 5).getInt();
this.Speed = config.get(this.nameInternal, "How fast are my projectiles? (default 1.5 BPT (Blocks Per Tick))", 1.5).getDouble();
this.Cooldown = config.get(this.nameInternal, "How long until I can fire again? (default 15)", 15).getInt();
this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default true.)", true).getBoolean(true);
this.shouldDrop = config.get(this.nameInternal, "Do I drop naked potatoes on misses? (default true)", true).getBoolean(true);
}
OSR.java 文件源码
项目:minecraft-quiverbow
阅读 21
收藏 0
点赞 0
评论 0
@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.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 4)", 4).getInt();
this.Cooldown = config.get(this.nameInternal, "How long until I can fire again? (default 100 ticks)", 100).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 true.)", true).getBoolean(true);
}
Sunray.java 文件源码
项目:minecraft-quiverbow
阅读 26
收藏 0
点赞 0
评论 0
@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 14)", 14).getInt();
this.DmgMax = config.get(this.nameInternal, "What damage are my arrows dealing, tops? (default 20)", 20).getInt();
this.Speed = 4.0f;
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 120 ticks)", 120).getInt();
this.FireDur = config.get(this.nameInternal, "How long is what I hit on fire? (default 10s)", 10).getInt();
this.MaxTicks = config.get(this.nameInternal, "How long does my beam exist, tops? (default 60 ticks)", 60).getInt();
this.LightMin = config.get(this.nameInternal, "What light level do I need to recharge, at least? (default 12)", 12).getInt();
this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default false. Too damn bright for their taste.)", false).getBoolean();
}
DragonBox.java 文件源码
项目:minecraft-quiverbow
阅读 32
收藏 0
点赞 0
评论 0
@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 true)", true).getBoolean(true);
}
ProspectingConfiguration.java 文件源码
项目:Prospecting
阅读 18
收藏 0
点赞 0
评论 0
public ProspectingConfiguration(FMLPreInitializationEvent e) {
final Configuration config = new Configuration(e.getSuggestedConfigurationFile());
config.load();
// this.nugget_amount = config.getInt("Nuggets Per Chunk", "General", 1, 0, 999999999, "The number of nuggets that can be prospected in a chunk, if it has applicable ore in it.");
this.chunk_expiry = config.getInt("Chunk Expiry", "Caching", 300, 1, 999999999, "The number of seconds until a chunk's cache expires. After the cache expires, the chunk will be re-scanned for ore when it is prospected.");
this.nugget_chance = config.getFloat("Nugget Chance", "Probabilities", 0.8f, 0f, 1f, "The chance that a chunk will have nuggets. The number of nuggets produced is determined by the \"Ore Per Nugget\" setting");
this.ore_per_nugget = config.getInt("Ore Per Nugget", "Probabilities", 50, 0, 4096, "The number of ore, on average, that will produce 1 nugget in a chunk. For example, if this value is 50, and a chunk has 100 iron ore, you can expect to get 2 nuggets from the chunk through prospecting.");
this.ore_per_nugget_deviation = config.getInt("Ore Per Nugget Deviation", "Probabilities", 10, 0, 4096, "The maximum deviation for nugget calculations. Your value for \"Ore Per Nugget\" well be randomly modified +- this value when calculating nuggets.");
this.max_nuggets = config.getInt("Maximum Nugget Count", "Probabilities", 5, 0, 4096, "The maximum number of nuggets to spawn in a given chunk for each ore.");
this.flower_chance = config.getFloat("Flower Chance", "Probabilities", 0.8f, 0f, 1f, "The chance that a given chunk will produce flowers, if it contains ore. The number of flowers produced is determined by the \"Ore Per Flower\" setting.");
this.flower_false_chance = config.getFloat("Flower False Positive Chance", "Probabilities", 0.05f, 0f, 1f, "This chance that a chunk will have some indicator flowers spawn despite having no ore.");
this.ore_per_flower = config.getInt("Ore Per Flower", "Probabilities", 50, 0, 4096, "The number of ore, on average, that it takes to produce 1 flower on the surface.");
this.ore_per_flower_deviation = config.getInt("Ore Per Flower Deviation", "Probabilities", 10, 0, 4096, "The maximum deviation for flower calculations. Your value for \"Ore Per Flower\" well be randomly modified +- this value when calculating flowers.");
this.max_flowers = config.getInt("Maximum Flower Count", "Probabilities", 10, 0, 4096, "The maximum number of flowers to spawn in a given chunk for each type of ore.");
config.save();
}
GalacticraftPlanets.java 文件源码
项目:4Space-5
阅读 24
收藏 0
点赞 0
评论 0
@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
FMLCommonHandler.instance().bus().register(this);
//Initialise configs, converting mars.conf + asteroids.conf to planets.conf if necessary
File oldMarsConf = new File(event.getModConfigurationDirectory(), "Galacticraft/mars.conf");
File newPlanetsConf = new File(event.getModConfigurationDirectory(), "Galacticraft/planets.conf");
boolean update = false;
if (oldMarsConf.exists())
{
oldMarsConf.renameTo(newPlanetsConf);
update = true;
}
new ConfigManagerMars(newPlanetsConf, update);
new ConfigManagerAsteroids(new File(event.getModConfigurationDirectory(), "Galacticraft/asteroids.conf"));
GalacticraftPlanets.commonModules.put(GalacticraftPlanets.MODULE_KEY_MARS, new MarsModule());
GalacticraftPlanets.commonModules.put(GalacticraftPlanets.MODULE_KEY_ASTEROIDS, new AsteroidsModule());
GalacticraftPlanets.proxy.preInit(event);
}
ClientProxy.java 文件源码
项目:SignPicture
阅读 23
收藏 0
点赞 0
评论 0
@Override
public void preInit(final @Nonnull FMLPreInitializationEvent event) {
super.preInit(event);
Log.log = event.getModLog();
Config.init(event.getSuggestedConfigurationFile());
// Setup stencil clip
// StencilClip.init();
// Setup location
Client.initLocation(new Locations(event.getSourceFile(), getDataDirectory()));
// Get Id
final String id = Client.mc.getSession().getPlayerID();
try {
final Object o = UUIDTypeAdapter.fromString(id);
if (o!=null) {
Client.id = id;
final Session s = Client.mc.getSession();
Client.name = s.getUsername();
Client.token = s.getToken();
}
} catch (final IllegalArgumentException e) {
}
}
ModConfig.java 文件源码
项目:BIGB
阅读 26
收藏 0
点赞 0
评论 0
/**
* This loads all of the data from the config file.
*/
public static void LoadAll(FMLPreInitializationEvent event)
{
config = new Configuration(event.getSuggestedConfigurationFile());
config.getConfigFile();
config.load();
config.save();
config.addCustomCategoryComment("Blocks", "Contains some settings about blocks.");
config.addCustomCategoryComment("ID", "Some settings to do with ID's");
config.addCustomCategoryComment("OreGeneration", "Contains some settings that are centered around ore generation");
config.addCustomCategoryComment("Minecraft", "Contains some settings that affect what this mod does when minecraft is loaded");
config.addCustomCategoryComment("Other", "Settings that don't fit in any other catagories");
config.addCustomCategoryComment("ProjectE", "Contains settings which affect ProjectE and this mod.");
config.addCustomCategoryComment("Extra Utilities", "Adds settings which affect Extra Utilities and this mod.");
config.addCustomCategoryComment("AutoBlocks", "A section which contains all of the auto blocks for this mod");
config.addCustomCategoryComment("AutoItem", "A section which contains all of the auto items for this mod");
config.load();
config.save();
Write();
HandleCompat();
config.save();
}
FNAFMod.java 文件源码
项目:FiveNightsAtFreddysUniverseMod
阅读 27
收藏 0
点赞 0
评论 0
@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
blockTile = new BlockTile(Material.rock).setBlockName("BlockTile").setBlockTextureName("fnafmod:tile_floor").setCreativeTab(tabFNAF);
blockMultiTile = new BlockMultiTile(Material.rock).setBlockName("BlockMultiTile").setBlockTextureName("fnafmod:multi_tiled_floor").setCreativeTab(tabFNAF);
GameRegistry.registerBlock(blockTile, blockTile.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(blockMultiTile, blockMultiTile.getUnlocalizedName().substring(5));
System.out.println(blockTile.getUnlocalizedName().substring(5));
System.out.println(blockMultiTile.getUnlocalizedName().substring(5));
FMLCommonHandler.instance().bus().register(FNAFMod.instance);
FNAF_Blocks.register();
FNAFEntities.registerEntity();
proxy.registerRenderers();
proxy.preInit();
}
RorysMod.java 文件源码
项目:RorysMod
阅读 27
收藏 0
点赞 0
评论 0
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
instance = this;
versionCheker = new Version();
settings = new RorysConfig(event);
settings.load(event);
creativeTab = new CreativeTabs("rorysMobTab") {
@Override
public Item getTabIconItem() {
return RorysMod.items.rifle1;
}
};
blocks.preInit(event);
items.preInit(event);
achievements.preInit(event);
blocks.register(event);
items.register(event);
PacketDispatcher.registerPackets();
}
LetsEncryptRoot.java 文件源码
项目:LetsEncryptRoot
阅读 25
收藏 0
点赞 0
评论 0
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event){
if (event.getSide() == Side.SERVER) {
logger.info("Client side only mod - not doing anything on the server!");
return;
}
}
CommonProxy.java 文件源码
项目:Steam-and-Steel
阅读 28
收藏 0
点赞 0
评论 0
public void preInit(FMLPreInitializationEvent e) {
GrandItem.init();
GrandBlocks.init();
BaseCraft.init();
GrandFluidTank.init();
GrandTileEntities.init();
}
CreeperHostServer.java 文件源码
项目:CreeperHostGui
阅读 24
收藏 0
点赞 0
评论 0
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent e)
{
if (!CreeperHost.instance.active)
return;
MinecraftForge.EVENT_BUS.register(this);
FMLCommonHandler.instance().bus().register(this);
logger = e.getModLog();
}
KorTech.java 文件源码
项目:ElementalElaboration
阅读 23
收藏 0
点赞 0
评论 0
@EventHandler
public void preInit(FMLPreInitializationEvent e)
{
config = new Configuration(e.getSuggestedConfigurationFile());
ConfigurationKorTech.syncConfig();
this.proxy.preInit(e);
}
CommonProxy.java 文件源码
项目:ElementalElaboration
阅读 24
收藏 0
点赞 0
评论 0
public void preInit(FMLPreInitializationEvent e)
{
ModBlocks.createBlocks();
ModItems.createItems();
Recipies.initShapedRecipies();
Recipies.initShapelessRecipies();
Recipies.initSmeltingRecipies();
CMRecipeManager.instance().initCMRecipes();
}