Beispiel #1
0
 public int func_149846_a(
     World p_149846_1_, int p_149846_2_, int p_149846_3_, int p_149846_4_, int p_149846_5_) {
   int var6 =
       this.field_149849_a[
           Block.func_149682_b(p_149846_1_.func_147439_a(p_149846_2_, p_149846_3_, p_149846_4_))];
   return var6 > p_149846_5_ ? var6 : p_149846_5_;
 }
Beispiel #2
0
  private void func_149841_a(
      World p_149841_1_,
      int p_149841_2_,
      int p_149841_3_,
      int p_149841_4_,
      int p_149841_5_,
      Random p_149841_6_,
      int p_149841_7_) {
    int var8 =
        this.field_149848_b[
            Block.func_149682_b(p_149841_1_.func_147439_a(p_149841_2_, p_149841_3_, p_149841_4_))];
    if (p_149841_6_.nextInt(p_149841_5_) < var8) {
      boolean var9 =
          p_149841_1_.func_147439_a(p_149841_2_, p_149841_3_, p_149841_4_) == Blocks.field_150335_W;
      if (p_149841_6_.nextInt(p_149841_7_ + 10) < 5
          && !p_149841_1_.func_72951_B(p_149841_2_, p_149841_3_, p_149841_4_)) {
        int var10 = p_149841_7_ + p_149841_6_.nextInt(5) / 4;
        if (var10 > 15) {
          var10 = 15;
        }

        p_149841_1_.func_147465_d(p_149841_2_, p_149841_3_, p_149841_4_, this, var10, 3);
      } else {
        p_149841_1_.func_147468_f(p_149841_2_, p_149841_3_, p_149841_4_);
      }

      if (var9) {
        Blocks.field_150335_W.func_149664_b(p_149841_1_, p_149841_2_, p_149841_3_, p_149841_4_, 1);
      }
    }
  }
Beispiel #3
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_);
   }
 }
Beispiel #4
0
 public boolean func_149844_e(
     IBlockAccess p_149844_1_, int p_149844_2_, int p_149844_3_, int p_149844_4_) {
   return this.field_149849_a[
           Block.func_149682_b(p_149844_1_.func_147439_a(p_149844_2_, p_149844_3_, p_149844_4_))]
       > 0;
 }