Package vazkii.botania.common.entity

Examples of vazkii.botania.common.entity.EntityDoppleganger


    super(new ModelBiped(0.5F), 0F);
  }

  @Override
  public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9) {
    EntityDoppleganger dopple = (EntityDoppleganger) par1Entity;
    BossBarHandler.setCurrentBoss(dopple);

    int invulTime = dopple.getInvulTime();
    if(invulTime > 0) {
      grainIntensity = invulTime > 20 ? 1F : invulTime * 0.05F;
      disfiguration = grainIntensity * 0.3F;
    } else {
      disfiguration = (0.025F + dopple.hurtTime * ((1F - 0.15F) / 20F)) / 2F;
View Full Code Here

TOP

Related Classes of vazkii.botania.common.entity.EntityDoppleganger

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.