Package vazkii.botania.common.entity

Examples of vazkii.botania.common.entity.EntityFlameRing


  }

  @Override
  public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer player, World par3World, int x, int y, int z, int par7, float par8, float par9, float par10) {
    if(!par3World.isRemote && par1ItemStack.getItemDamage() == 0 && ManaItemHandler.requestManaExact(par1ItemStack, player, COST, false)) {
      EntityFlameRing entity = new EntityFlameRing(player.worldObj);
      entity.setPosition(x + 0.5, y + 1, z + 0.5);
      player.worldObj.spawnEntityInWorld(entity);

      par1ItemStack.setItemDamage(COOLDOWN);
      ManaItemHandler.requestManaExact(par1ItemStack, player, COST, true);
      par3World.playSoundAtEntity(player, "mob.blaze.breathe", 1F, 1F);
View Full Code Here

TOP

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

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.