ProximityNeedler.java 文件源码

java
阅读 35 收藏 0 点赞 0 评论 0

项目:minecraft-quiverbow 作者:
@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();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号