Examples of consumeAllVis()


Examples of thaumcraft.common.items.wands.ItemWandCasting.consumeAllVis()

          int x = ItemSkyPearl.getX(stackToCount);
          int y = ItemSkyPearl.getY(stackToCount);
          int z = ItemSkyPearl.getZ(stackToCount);

          if (wand.consumeAllVis(paramItemStack, paramEntityPlayer, getVisCost(), false, false) && TileWarpGate.teleportPlayer(paramEntityPlayer, new ChunkCoordinates(x, y, z)))
            wand.consumeAllVis(paramItemStack, paramEntityPlayer, getVisCost(), true, false);
        }
      }

      paramEntityPlayer.clearItemInUse();
    }
View Full Code Here

Examples of thaumcraft.common.items.wands.ItemWandCasting.consumeAllVis()

  @Override
  public void onUsingFocusTick(ItemStack stack, EntityPlayer player, int count) {
    ItemWandCasting wand = (ItemWandCasting) stack.getItem();

    if (!player.worldObj.isRemote && wand.consumeAllVis(stack, player, getVisCost(), true, false)) {
      int potency = EnchantmentHelper.getEnchantmentLevel(Config.enchPotency.effectId, wand.getFocusItem(stack));

      if (player.worldObj.rand.nextInt(10) == 0)
        player.worldObj.playSoundAtEntity(player, "thaumcraft:brain", 0.5F, 1F);
View Full Code Here

Examples of thaumcraft.common.items.wands.ItemWandCasting.consumeAllVis()

        return stack;
      }
    }
    boolean vanilla=!focus.getTagCompound().getBoolean("ender");

        if (wand.consumeAllVis(stack, p, ItemFocusEnderChest.visUsage, true, false)) {
            if(vanilla)
      {
        p.displayGUIChest(p.getInventoryEnderChest());
        world.playSoundAtEntity(p, "mob.endermen.portal", 1F, 1F);
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.