Exemple #1
0
 public void func_149636_a(
     World p_149636_1_,
     EntityPlayer p_149636_2_,
     int p_149636_3_,
     int p_149636_4_,
     int p_149636_5_,
     int p_149636_6_) {
   if (!p_149636_1_.field_72995_K
       && p_149636_2_.func_71045_bC() != null
       && p_149636_2_.func_71045_bC().func_77973_b() == Items.field_151097_aZ) {
     p_149636_2_.func_71064_a(StatList.field_75934_C[Block.func_149682_b(this)], 1);
     this.func_149642_a(
         p_149636_1_,
         p_149636_3_,
         p_149636_4_,
         p_149636_5_,
         new ItemStack(Item.func_150898_a(this), 1, p_149636_6_ & 3));
   } else {
     super.func_149636_a(
         p_149636_1_, p_149636_2_, p_149636_3_, p_149636_4_, p_149636_5_, p_149636_6_);
   }
 }
Exemple #2
0
 protected ItemStack func_149644_j(int p_149644_1_) {
   return new ItemStack(Item.func_150898_a(Blocks.field_150376_bx), 2, p_149644_1_ & 7);
 }
Exemple #3
0
 public Item func_149650_a(int p_149650_1_, Random p_149650_2_, int p_149650_3_) {
   return Item.func_150898_a(Blocks.field_150376_bx);
 }
Exemple #4
0
 protected ItemStack func_149644_j(int p_149644_1_) {
   return new ItemStack(Item.func_150898_a(this), 1, p_149644_1_ & 3);
 }
 static {
   field_70958_bB.put(Items.field_151044_h, new Tuple(Integer.valueOf(16), Integer.valueOf(24)));
   field_70958_bB.put(Items.field_151042_j, new Tuple(Integer.valueOf(8), Integer.valueOf(10)));
   field_70958_bB.put(Items.field_151043_k, new Tuple(Integer.valueOf(8), Integer.valueOf(10)));
   field_70958_bB.put(Items.field_151045_i, new Tuple(Integer.valueOf(4), Integer.valueOf(6)));
   field_70958_bB.put(Items.field_151121_aF, new Tuple(Integer.valueOf(24), Integer.valueOf(36)));
   field_70958_bB.put(Items.field_151122_aG, new Tuple(Integer.valueOf(11), Integer.valueOf(13)));
   field_70958_bB.put(Items.field_151164_bB, new Tuple(Integer.valueOf(1), Integer.valueOf(1)));
   field_70958_bB.put(Items.field_151079_bi, new Tuple(Integer.valueOf(3), Integer.valueOf(4)));
   field_70958_bB.put(Items.field_151061_bv, new Tuple(Integer.valueOf(2), Integer.valueOf(3)));
   field_70958_bB.put(Items.field_151147_al, new Tuple(Integer.valueOf(14), Integer.valueOf(18)));
   field_70958_bB.put(Items.field_151082_bd, new Tuple(Integer.valueOf(14), Integer.valueOf(18)));
   field_70958_bB.put(Items.field_151076_bf, new Tuple(Integer.valueOf(14), Integer.valueOf(18)));
   field_70958_bB.put(Items.field_151101_aQ, new Tuple(Integer.valueOf(9), Integer.valueOf(13)));
   field_70958_bB.put(Items.field_151014_N, new Tuple(Integer.valueOf(34), Integer.valueOf(48)));
   field_70958_bB.put(Items.field_151081_bc, new Tuple(Integer.valueOf(30), Integer.valueOf(38)));
   field_70958_bB.put(Items.field_151080_bb, new Tuple(Integer.valueOf(30), Integer.valueOf(38)));
   field_70958_bB.put(Items.field_151015_O, new Tuple(Integer.valueOf(18), Integer.valueOf(22)));
   field_70958_bB.put(
       Item.func_150898_a(Blocks.field_150325_L),
       new Tuple(Integer.valueOf(14), Integer.valueOf(22)));
   field_70958_bB.put(Items.field_151078_bh, new Tuple(Integer.valueOf(36), Integer.valueOf(64)));
   field_70960_bC.put(Items.field_151033_d, new Tuple(Integer.valueOf(3), Integer.valueOf(4)));
   field_70960_bC.put(Items.field_151097_aZ, new Tuple(Integer.valueOf(3), Integer.valueOf(4)));
   field_70960_bC.put(Items.field_151040_l, new Tuple(Integer.valueOf(7), Integer.valueOf(11)));
   field_70960_bC.put(Items.field_151048_u, new Tuple(Integer.valueOf(12), Integer.valueOf(14)));
   field_70960_bC.put(Items.field_151036_c, new Tuple(Integer.valueOf(6), Integer.valueOf(8)));
   field_70960_bC.put(Items.field_151056_x, new Tuple(Integer.valueOf(9), Integer.valueOf(12)));
   field_70960_bC.put(Items.field_151035_b, new Tuple(Integer.valueOf(7), Integer.valueOf(9)));
   field_70960_bC.put(Items.field_151046_w, new Tuple(Integer.valueOf(10), Integer.valueOf(12)));
   field_70960_bC.put(Items.field_151037_a, new Tuple(Integer.valueOf(4), Integer.valueOf(6)));
   field_70960_bC.put(Items.field_151047_v, new Tuple(Integer.valueOf(7), Integer.valueOf(8)));
   field_70960_bC.put(Items.field_151019_K, new Tuple(Integer.valueOf(4), Integer.valueOf(6)));
   field_70960_bC.put(Items.field_151012_L, new Tuple(Integer.valueOf(7), Integer.valueOf(8)));
   field_70960_bC.put(Items.field_151167_ab, new Tuple(Integer.valueOf(4), Integer.valueOf(6)));
   field_70960_bC.put(Items.field_151175_af, new Tuple(Integer.valueOf(7), Integer.valueOf(8)));
   field_70960_bC.put(Items.field_151028_Y, new Tuple(Integer.valueOf(4), Integer.valueOf(6)));
   field_70960_bC.put(Items.field_151161_ac, new Tuple(Integer.valueOf(7), Integer.valueOf(8)));
   field_70960_bC.put(Items.field_151030_Z, new Tuple(Integer.valueOf(10), Integer.valueOf(14)));
   field_70960_bC.put(Items.field_151163_ad, new Tuple(Integer.valueOf(16), Integer.valueOf(19)));
   field_70960_bC.put(Items.field_151165_aa, new Tuple(Integer.valueOf(8), Integer.valueOf(10)));
   field_70960_bC.put(Items.field_151173_ae, new Tuple(Integer.valueOf(11), Integer.valueOf(14)));
   field_70960_bC.put(Items.field_151029_X, new Tuple(Integer.valueOf(5), Integer.valueOf(7)));
   field_70960_bC.put(Items.field_151020_U, new Tuple(Integer.valueOf(5), Integer.valueOf(7)));
   field_70960_bC.put(Items.field_151023_V, new Tuple(Integer.valueOf(11), Integer.valueOf(15)));
   field_70960_bC.put(Items.field_151022_W, new Tuple(Integer.valueOf(9), Integer.valueOf(11)));
   field_70960_bC.put(Items.field_151025_P, new Tuple(Integer.valueOf(-4), Integer.valueOf(-2)));
   field_70960_bC.put(Items.field_151127_ba, new Tuple(Integer.valueOf(-8), Integer.valueOf(-4)));
   field_70960_bC.put(Items.field_151034_e, new Tuple(Integer.valueOf(-8), Integer.valueOf(-4)));
   field_70960_bC.put(Items.field_151106_aX, new Tuple(Integer.valueOf(-10), Integer.valueOf(-7)));
   field_70960_bC.put(
       Item.func_150898_a(Blocks.field_150359_w),
       new Tuple(Integer.valueOf(-5), Integer.valueOf(-3)));
   field_70960_bC.put(
       Item.func_150898_a(Blocks.field_150342_X),
       new Tuple(Integer.valueOf(3), Integer.valueOf(4)));
   field_70960_bC.put(Items.field_151027_R, new Tuple(Integer.valueOf(4), Integer.valueOf(5)));
   field_70960_bC.put(Items.field_151021_T, new Tuple(Integer.valueOf(2), Integer.valueOf(4)));
   field_70960_bC.put(Items.field_151024_Q, new Tuple(Integer.valueOf(2), Integer.valueOf(4)));
   field_70960_bC.put(Items.field_151026_S, new Tuple(Integer.valueOf(2), Integer.valueOf(4)));
   field_70960_bC.put(Items.field_151141_av, new Tuple(Integer.valueOf(6), Integer.valueOf(8)));
   field_70960_bC.put(Items.field_151062_by, new Tuple(Integer.valueOf(-4), Integer.valueOf(-1)));
   field_70960_bC.put(Items.field_151137_ax, new Tuple(Integer.valueOf(-4), Integer.valueOf(-1)));
   field_70960_bC.put(Items.field_151111_aL, new Tuple(Integer.valueOf(10), Integer.valueOf(12)));
   field_70960_bC.put(Items.field_151113_aN, new Tuple(Integer.valueOf(10), Integer.valueOf(12)));
   field_70960_bC.put(
       Item.func_150898_a(Blocks.field_150426_aN),
       new Tuple(Integer.valueOf(-3), Integer.valueOf(-1)));
   field_70960_bC.put(Items.field_151157_am, new Tuple(Integer.valueOf(-7), Integer.valueOf(-5)));
   field_70960_bC.put(Items.field_151083_be, new Tuple(Integer.valueOf(-7), Integer.valueOf(-5)));
   field_70960_bC.put(Items.field_151077_bg, new Tuple(Integer.valueOf(-8), Integer.valueOf(-6)));
   field_70960_bC.put(Items.field_151061_bv, new Tuple(Integer.valueOf(7), Integer.valueOf(11)));
   field_70960_bC.put(Items.field_151032_g, new Tuple(Integer.valueOf(-12), Integer.valueOf(-8)));
 }
  private void func_70950_c(int p_70950_1_) {
    if (this.field_70963_i != null) {
      this.field_82191_bN = MathHelper.func_76129_c((float) this.field_70963_i.size()) * 0.2F;
    } else {
      this.field_82191_bN = 0.0F;
    }

    MerchantRecipeList var2;
    var2 = new MerchantRecipeList();
    int var6;
    label50:
    switch (this.func_70946_n()) {
      case 0:
        func_146091_a(var2, Items.field_151015_O, this.field_70146_Z, this.func_82188_j(0.9F));
        func_146091_a(
            var2,
            Item.func_150898_a(Blocks.field_150325_L),
            this.field_70146_Z,
            this.func_82188_j(0.5F));
        func_146091_a(var2, Items.field_151076_bf, this.field_70146_Z, this.func_82188_j(0.5F));
        func_146091_a(var2, Items.field_151101_aQ, this.field_70146_Z, this.func_82188_j(0.4F));
        func_146089_b(var2, Items.field_151025_P, this.field_70146_Z, this.func_82188_j(0.9F));
        func_146089_b(var2, Items.field_151127_ba, this.field_70146_Z, this.func_82188_j(0.3F));
        func_146089_b(var2, Items.field_151034_e, this.field_70146_Z, this.func_82188_j(0.3F));
        func_146089_b(var2, Items.field_151106_aX, this.field_70146_Z, this.func_82188_j(0.3F));
        func_146089_b(var2, Items.field_151097_aZ, this.field_70146_Z, this.func_82188_j(0.3F));
        func_146089_b(var2, Items.field_151033_d, this.field_70146_Z, this.func_82188_j(0.3F));
        func_146089_b(var2, Items.field_151077_bg, this.field_70146_Z, this.func_82188_j(0.3F));
        func_146089_b(var2, Items.field_151032_g, this.field_70146_Z, this.func_82188_j(0.5F));
        if (this.field_70146_Z.nextFloat() < this.func_82188_j(0.5F)) {
          var2.add(
              new MerchantRecipe(
                  new ItemStack(Blocks.field_150351_n, 10),
                  new ItemStack(Items.field_151166_bC),
                  new ItemStack(Items.field_151145_ak, 4 + this.field_70146_Z.nextInt(2), 0)));
        }
        break;
      case 1:
        func_146091_a(var2, Items.field_151121_aF, this.field_70146_Z, this.func_82188_j(0.8F));
        func_146091_a(var2, Items.field_151122_aG, this.field_70146_Z, this.func_82188_j(0.8F));
        func_146091_a(var2, Items.field_151164_bB, this.field_70146_Z, this.func_82188_j(0.3F));
        func_146089_b(
            var2,
            Item.func_150898_a(Blocks.field_150342_X),
            this.field_70146_Z,
            this.func_82188_j(0.8F));
        func_146089_b(
            var2,
            Item.func_150898_a(Blocks.field_150359_w),
            this.field_70146_Z,
            this.func_82188_j(0.2F));
        func_146089_b(var2, Items.field_151111_aL, this.field_70146_Z, this.func_82188_j(0.2F));
        func_146089_b(var2, Items.field_151113_aN, this.field_70146_Z, this.func_82188_j(0.2F));
        if (this.field_70146_Z.nextFloat() < this.func_82188_j(0.07F)) {
          Enchantment var8 =
              Enchantment.field_92090_c[
                  this.field_70146_Z.nextInt(Enchantment.field_92090_c.length)];
          int var10 =
              MathHelper.func_76136_a(this.field_70146_Z, var8.func_77319_d(), var8.func_77325_b());
          ItemStack var11 = Items.field_151134_bR.func_92111_a(new EnchantmentData(var8, var10));
          var6 = 2 + this.field_70146_Z.nextInt(5 + var10 * 10) + 3 * var10;
          var2.add(
              new MerchantRecipe(
                  new ItemStack(Items.field_151122_aG),
                  new ItemStack(Items.field_151166_bC, var6),
                  var11));
        }
        break;
      case 2:
        func_146089_b(var2, Items.field_151061_bv, this.field_70146_Z, this.func_82188_j(0.3F));
        func_146089_b(var2, Items.field_151062_by, this.field_70146_Z, this.func_82188_j(0.2F));
        func_146089_b(var2, Items.field_151137_ax, this.field_70146_Z, this.func_82188_j(0.4F));
        func_146089_b(
            var2,
            Item.func_150898_a(Blocks.field_150426_aN),
            this.field_70146_Z,
            this.func_82188_j(0.3F));
        Item[] var3 =
            new Item[] {
              Items.field_151040_l,
              Items.field_151048_u,
              Items.field_151030_Z,
              Items.field_151163_ad,
              Items.field_151036_c,
              Items.field_151056_x,
              Items.field_151035_b,
              Items.field_151046_w
            };
        Item[] var4 = var3;
        int var5 = var3.length;
        var6 = 0;

        while (true) {
          if (var6 >= var5) {
            break label50;
          }

          Item var7 = var4[var6];
          if (this.field_70146_Z.nextFloat() < this.func_82188_j(0.05F)) {
            var2.add(
                new MerchantRecipe(
                    new ItemStack(var7, 1, 0),
                    new ItemStack(Items.field_151166_bC, 2 + this.field_70146_Z.nextInt(3), 0),
                    EnchantmentHelper.func_77504_a(
                        this.field_70146_Z,
                        new ItemStack(var7, 1, 0),
                        5 + this.field_70146_Z.nextInt(15))));
          }

          ++var6;
        }
      case 3:
        func_146091_a(var2, Items.field_151044_h, this.field_70146_Z, this.func_82188_j(0.7F));
        func_146091_a(var2, Items.field_151042_j, this.field_70146_Z, this.func_82188_j(0.5F));
        func_146091_a(var2, Items.field_151043_k, this.field_70146_Z, this.func_82188_j(0.5F));
        func_146091_a(var2, Items.field_151045_i, this.field_70146_Z, this.func_82188_j(0.5F));
        func_146089_b(var2, Items.field_151040_l, this.field_70146_Z, this.func_82188_j(0.5F));
        func_146089_b(var2, Items.field_151048_u, this.field_70146_Z, this.func_82188_j(0.5F));
        func_146089_b(var2, Items.field_151036_c, this.field_70146_Z, this.func_82188_j(0.3F));
        func_146089_b(var2, Items.field_151056_x, this.field_70146_Z, this.func_82188_j(0.3F));
        func_146089_b(var2, Items.field_151035_b, this.field_70146_Z, this.func_82188_j(0.5F));
        func_146089_b(var2, Items.field_151046_w, this.field_70146_Z, this.func_82188_j(0.5F));
        func_146089_b(var2, Items.field_151037_a, this.field_70146_Z, this.func_82188_j(0.2F));
        func_146089_b(var2, Items.field_151047_v, this.field_70146_Z, this.func_82188_j(0.2F));
        func_146089_b(var2, Items.field_151019_K, this.field_70146_Z, this.func_82188_j(0.2F));
        func_146089_b(var2, Items.field_151012_L, this.field_70146_Z, this.func_82188_j(0.2F));
        func_146089_b(var2, Items.field_151167_ab, this.field_70146_Z, this.func_82188_j(0.2F));
        func_146089_b(var2, Items.field_151175_af, this.field_70146_Z, this.func_82188_j(0.2F));
        func_146089_b(var2, Items.field_151028_Y, this.field_70146_Z, this.func_82188_j(0.2F));
        func_146089_b(var2, Items.field_151161_ac, this.field_70146_Z, this.func_82188_j(0.2F));
        func_146089_b(var2, Items.field_151030_Z, this.field_70146_Z, this.func_82188_j(0.2F));
        func_146089_b(var2, Items.field_151163_ad, this.field_70146_Z, this.func_82188_j(0.2F));
        func_146089_b(var2, Items.field_151165_aa, this.field_70146_Z, this.func_82188_j(0.2F));
        func_146089_b(var2, Items.field_151173_ae, this.field_70146_Z, this.func_82188_j(0.2F));
        func_146089_b(var2, Items.field_151029_X, this.field_70146_Z, this.func_82188_j(0.1F));
        func_146089_b(var2, Items.field_151020_U, this.field_70146_Z, this.func_82188_j(0.1F));
        func_146089_b(var2, Items.field_151023_V, this.field_70146_Z, this.func_82188_j(0.1F));
        func_146089_b(var2, Items.field_151022_W, this.field_70146_Z, this.func_82188_j(0.1F));
        break;
      case 4:
        func_146091_a(var2, Items.field_151044_h, this.field_70146_Z, this.func_82188_j(0.7F));
        func_146091_a(var2, Items.field_151147_al, this.field_70146_Z, this.func_82188_j(0.5F));
        func_146091_a(var2, Items.field_151082_bd, this.field_70146_Z, this.func_82188_j(0.5F));
        func_146089_b(var2, Items.field_151141_av, this.field_70146_Z, this.func_82188_j(0.1F));
        func_146089_b(var2, Items.field_151027_R, this.field_70146_Z, this.func_82188_j(0.3F));
        func_146089_b(var2, Items.field_151021_T, this.field_70146_Z, this.func_82188_j(0.3F));
        func_146089_b(var2, Items.field_151024_Q, this.field_70146_Z, this.func_82188_j(0.3F));
        func_146089_b(var2, Items.field_151026_S, this.field_70146_Z, this.func_82188_j(0.3F));
        func_146089_b(var2, Items.field_151157_am, this.field_70146_Z, this.func_82188_j(0.3F));
        func_146089_b(var2, Items.field_151083_be, this.field_70146_Z, this.func_82188_j(0.3F));
    }

    if (var2.isEmpty()) {
      func_146091_a(var2, Items.field_151043_k, this.field_70146_Z, 1.0F);
    }

    Collections.shuffle(var2);
    if (this.field_70963_i == null) {
      this.field_70963_i = new MerchantRecipeList();
    }

    for (int var9 = 0; var9 < p_70950_1_ && var9 < var2.size(); ++var9) {
      this.field_70963_i.func_77205_a((MerchantRecipe) var2.get(var9));
    }
  }
 public Item func_180660_a(IBlockState p_180660_1_, Random p_180660_2_, int p_180660_3_) {
   return Item.func_150898_a(Blocks.field_150429_aA);
 }
 public Item func_180665_b(World p_180665_1_, BlockPos p_180665_2_) {
   return Item.func_150898_a(Blocks.field_150429_aA);
 }