Exemplo n.º 1
0
 @Override
 protected void applyEntityAttributes() {
   super.applyEntityAttributes();
   this.getEntityAttribute(SharedMonsterAttributes.maxHealth)
       .setBaseValue(net.divinerpg.entities.base.EntityStats.golemRejuvHealth);
   this.getEntityAttribute(SharedMonsterAttributes.movementSpeed)
       .setBaseValue(net.divinerpg.entities.base.EntityStats.golemRejuvSpeed);
   this.getEntityAttribute(SharedMonsterAttributes.followRange)
       .setBaseValue(net.divinerpg.entities.base.EntityStats.golemRejuvFollowRange);
 }
Exemplo n.º 2
0
 @Override
 public void onUpdate() {
   super.onUpdate();
   if (this.getOwner() != null) {
     if (this.healTimer == 16) {
       this.getOwner().heal(1);
       this.healTimer = 0;
     } else {
       this.healTimer++;
     }
   }
 }