Package vazkii.botania.common.entity

Examples of vazkii.botania.common.entity.EntityPixie


    return new ResourceLocation(LibResources.MODEL_PIXIE);
  }

  @Override
  public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9) {
    EntityPixie pixie = (EntityPixie) par1Entity;

    if(pixie.getType() == 1)
      ShaderHelper.useShader(ShaderHelper.doppleganger, callback);
    super.doRender(par1Entity, par2, par4, par6, par8, par9);
    if(pixie.getType() == 1)
      ShaderHelper.releaseShader();
  }
View Full Code Here


      break;
    }
    case 13 : { // Pixie Friend
      if(!player.worldObj.isRemote) {
        EntityPixie pixie = new EntityPixie(player.worldObj);
        pixie.setPosition(player.posX, player.posY + 1.5, player.posZ);
        player.worldObj.spawnEntityInWorld(pixie);
      }
      break;
    }
    case 14 : { // Nausea + Blindness :3
View Full Code Here

      InventoryBaubles baubles = PlayerHandler.getPlayerBaubles(player);
      for(int i = 0; i < baubles.getSizeInventory(); i++)
        chance += getChance(baubles.getStackInSlot(i));

      if(Math.random() < chance) {
        EntityPixie pixie = new EntityPixie(player.worldObj);
        pixie.setPosition(player.posX, player.posY + 2, player.posZ);

        float dmg = 4;
        if(stack != null && stack.getItem() == ModItems.elementiumSword)
          dmg += 2;

        pixie.setProps((EntityLivingBase) event.source.getEntity(), player, 0, dmg);
        player.worldObj.spawnEntityInWorld(pixie);
      }
    }
  }
View Full Code Here

TOP

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

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.