コード例 #1
0
 @Override
 protected void applyEntityAttributes() {
   super.applyEntityAttributes();
   double[] stats =
       TragicConfig.getMobStat(this.getCryseType() == 0 ? "cryseStats" : "starCryseStats")
           .getStats();
   this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(stats[0]);
   this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(stats[1]);
   this.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(stats[2]);
   this.getEntityAttribute(SharedMonsterAttributes.followRange).setBaseValue(stats[3]);
   this.getEntityAttribute(SharedMonsterAttributes.knockbackResistance).setBaseValue(stats[4]);
 }