@EventHandler
public void preInit(FMLPreInitializationEvent event) {
TPBlocks.initialize();
TPItems.initialize();
TPDimensionConfig.initalize(new File(event.getModConfigurationDirectory(), "TrappistOne/dimension.cfg"));
TPBiomeConfig.initalize(new File(event.getModConfigurationDirectory(), "TrappistOne/biome.cfg"));
proxy.preload();
}
java类cpw.mods.fml.common.event.FMLPreInitializationEvent的实例源码
Core.java 文件源码
项目:TRAPPIST-1
阅读 29
收藏 0
点赞 0
评论 0
Main.java 文件源码
项目:minecraft-quiverbow
阅读 23
收藏 0
点赞 0
评论 0
private static void addAllProps(FMLPreInitializationEvent event, Configuration config)
{
// Ammo first
for(_AmmoBase ammunition : ammo)
{
ammunition.addRecipes();
}
// Weapons last
for(_WeaponBase weapon : weapons)
{
weapon.addProps(event, config);
weapon.addRecipes();
}
}
Crossbow_Double.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 14)", 14).getInt();
this.DmgMax = config.get(this.nameInternal, "What damage am I dealing, tops? (default 20)", 20).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 2)", 2).getInt();
this.Cooldown = config.get(this.nameInternal, "How long until I can fire again? (default 25 ticks)", 25).getInt();
this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default true)", true).getBoolean(true);
}
NetherBellows.java 文件源码
项目:minecraft-quiverbow
阅读 27
收藏 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.Speed = config.get(this.nameInternal, "How fast are my projectiles? (default 0.75 BPT (Blocks Per Tick))", 0.75).getDouble();
this.Dmg = config.get(this.nameInternal, "What damage am I dealing per projectile? (default 1)", 1).getInt();
this.FireDur = config.get(this.nameInternal, "For how long do I set things on fire? (default 3 sec)", 3).getInt();
this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default true.)", true).getBoolean(true);
}
AA_Targeter.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.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default false. They're not friends with AAs.)", false).getBoolean(true);
}
FlintDuster.java 文件源码
项目:minecraft-quiverbow
阅读 30
收藏 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.Speed = 1.5f; // Fixed value
this.Dmg = config.get(this.nameInternal, "What damage am I dealing? (default 1)", 1).getInt();
this.MaxBlocks = config.get(this.nameInternal, "How much range do I have? (default ~7 blocks)", 7).getInt();
this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default false. They have no interest in dirt.)", false).getBoolean(true);
}
RPG.java 文件源码
项目:minecraft-quiverbow
阅读 27
收藏 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.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 3)", 3).getInt();
this.ExplosionSize = config.get(this.nameInternal, "How big are my explosions? (default 4.0 blocks, like TNT)", 4.0).getDouble();
this.travelTime = config.get(this.nameInternal, "How many ticks can my rocket fly before exploding? (default 20 ticks)", 20).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 true)", true).getBoolean(true);
}
EnderBow.java 文件源码
项目:minecraft-quiverbow
阅读 33
收藏 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.Ticks = config.get(this.nameInternal, "How often should I display the predictive projectile? (default every 5 ticks. That's 4 per second.)", 5).getInt();
this.ZoomMax = config.get(this.nameInternal, "How far can I zoom in? (default 30. Lower equals more zoom.)", 30).getInt();
this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default false. They don't know how to pull a string anymore.)", false).getBoolean();
}
QuiverBow.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.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default false. They don't know how to span the string.)", false).getBoolean(true);
}
MediGun.java 文件源码
项目:minecraft-quiverbow
阅读 27
收藏 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.Speed = config.get(this.nameInternal, "How fast are my beams? (default 5.0 BPT (Blocks Per Tick))", 5.0).getDouble();
this.isMobUsable = config.get(this.nameInternal, "Can I be used by QuiverMobs? (default false. They don't know what friends are.)", false).getBoolean(true);
}