protected void func_48434_c(ItemStack par1ItemStack) {
    par1ItemStack.onCrafting(this.thePlayer.worldObj, this.thePlayer, this.field_48436_g);
    this.field_48436_g = 0;

    if (Util.isWooden(par1ItemStack)
        || Util.isStone(par1ItemStack)
        || Util.isIron(par1ItemStack)
        || Util.isGold(par1ItemStack)
        || Util.isDiamond(par1ItemStack)) {
      ItemCrossbow item = (ItemCrossbow) par1ItemStack.getItem();
      //            this.thePlayer.addStat(mod_CrossbowMod.createCrossbow, 1); TODO
    }
  }
Exemplo n.º 2
0
 public void onCraftingPickup(World world, EntityPlayer player, ItemStack stack) {
   stack.onCrafting(world, player, stack.stackSize);
 }