RPG.java 文件源码

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


问题


面经


文章

微信
公众号

扫码关注公众号