示例#1
0
  @Override
  public void a(EntityLiving entityliving, float f) {
    if (type != GuardType.RANGED) {
      return;
    }

    super.a(entityliving, f);
  }
示例#2
0
 @Override
 protected void aD() {
   super.aD();
   getAttributeInstance(GenericAttributes.maxHealth)
       .setValue(ConfigEntries.GUARD_HEALTH.<Double>getValue());
   getAttributeInstance(GenericAttributes.c)
       .setValue(ConfigEntries.GUARD_KNOCKBACK_RESIST.<Double>getValue());
   getAttributeInstance(GenericAttributes.d)
       .setValue(ConfigEntries.GUARD_SPEED.<Double>getValue());
   getAttributeInstance(GenericAttributes.e)
       .setValue(ConfigEntries.GUARD_DAMAGE.<Double>getValue());
 }
示例#3
0
 @Override
 public void die() {
   if (ConfigEntries.GUARD_ZOMBIE_DEATH.<Boolean>getValue()) {
     CustomEntityZombie zombie = new CustomEntityZombie(world);
     zombie.setEquipment(0, getEquipment(0));
     zombie.setEquipment(1, getEquipment(1));
     zombie.setEquipment(2, getEquipment(2));
     zombie.setEquipment(3, getEquipment(3));
     zombie.setEquipment(4, getEquipment(4));
     zombie.setLocation(locX, locY, locZ, yaw, pitch);
     world.addEntity(zombie);
   }
   super.die();
 }