ERA.java 文件源码

java
阅读 37 收藏 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 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();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号