예제 #1
0
 public void func_71902_a(
     IBlockAccess p_71902_1_, int p_71902_2_, int p_71902_3_, int p_71902_4_) {
   this.field_72022_cl =
       (double)
           ((float) (p_71902_1_.func_72805_g(p_71902_2_, p_71902_3_, p_71902_4_) * 2 + 2) / 16.0F);
   float var5 = 0.125F;
   this.func_71905_a(
       0.5F - var5, 0.0F, 0.5F - var5, 0.5F + var5, (float) this.field_72022_cl, 0.5F + var5);
 }
예제 #2
0
 public void func_82541_d(
     IBlockAccess p_82541_1_, int p_82541_2_, int p_82541_3_, int p_82541_4_) {
   int var5 = p_82541_1_.func_72805_g(p_82541_2_, p_82541_3_, p_82541_4_);
   if ((var5 & 4) != 0) {
     this.func_71905_a(0.0F, 0.5F, 0.0F, 1.0F, 1.0F, 1.0F);
   } else {
     this.func_71905_a(0.0F, 0.0F, 0.0F, 1.0F, 0.5F, 1.0F);
   }
 }
예제 #3
0
 public void func_71902_a(
     IBlockAccess p_71902_1_, int p_71902_2_, int p_71902_3_, int p_71902_4_) {
   if (this.field_72242_a) {
     this.func_71905_a(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
   } else {
     boolean var5 = (p_71902_1_.func_72805_g(p_71902_2_, p_71902_3_, p_71902_4_) & 8) != 0;
     if (var5) {
       this.func_71905_a(0.0F, 0.5F, 0.0F, 1.0F, 1.0F, 1.0F);
     } else {
       this.func_71905_a(0.0F, 0.0F, 0.0F, 1.0F, 0.5F, 1.0F);
     }
   }
 }
 public boolean func_71865_a(
     IBlockAccess p_71865_1_, int p_71865_2_, int p_71865_3_, int p_71865_4_, int p_71865_5_) {
   if (!this.field_72130_a) {
     return false;
   } else {
     int var6 = p_71865_1_.func_72805_g(p_71865_2_, p_71865_3_, p_71865_4_);
     return var6 == 5 && p_71865_5_ == 1
         ? false
         : (var6 == 3 && p_71865_5_ == 3
             ? false
             : (var6 == 4 && p_71865_5_ == 2
                 ? false
                 : (var6 == 1 && p_71865_5_ == 5 ? false : var6 != 2 || p_71865_5_ != 4)));
   }
 }
예제 #5
0
 public int func_71855_c(
     IBlockAccess p_71855_1_, int p_71855_2_, int p_71855_3_, int p_71855_4_, int p_71855_5_) {
   int var6 = p_71855_1_.func_72805_g(p_71855_2_, p_71855_3_, p_71855_4_);
   if ((var6 & 8) == 0) {
     return 0;
   } else {
     int var7 = var6 & 7;
     return var7 == 5 && p_71855_5_ == 1
         ? 15
         : (var7 == 4 && p_71855_5_ == 2
             ? 15
             : (var7 == 3 && p_71855_5_ == 3
                 ? 15
                 : (var7 == 2 && p_71855_5_ == 4 ? 15 : (var7 == 1 && p_71855_5_ == 5 ? 15 : 0))));
   }
 }
예제 #6
0
 @SideOnly(Side.CLIENT)
 public int func_72265_d(IBlockAccess p_72265_1_, int p_72265_2_, int p_72265_3_, int p_72265_4_) {
   int var5 = p_72265_1_.func_72805_g(p_72265_2_, p_72265_3_, p_72265_4_);
   return var5 < 7
       ? -1
       : (p_72265_1_.func_72798_a(p_72265_2_ - 1, p_72265_3_, p_72265_4_)
               == this.field_72267_a.field_71990_ca
           ? 0
           : (p_72265_1_.func_72798_a(p_72265_2_ + 1, p_72265_3_, p_72265_4_)
                   == this.field_72267_a.field_71990_ca
               ? 1
               : (p_72265_1_.func_72798_a(p_72265_2_, p_72265_3_, p_72265_4_ - 1)
                       == this.field_72267_a.field_71990_ca
                   ? 2
                   : (p_72265_1_.func_72798_a(p_72265_2_, p_72265_3_, p_72265_4_ + 1)
                           == this.field_72267_a.field_71990_ca
                       ? 3
                       : -1))));
 }
예제 #7
0
 @SideOnly(Side.CLIENT)
 public int func_71920_b(IBlockAccess p_71920_1_, int p_71920_2_, int p_71920_3_, int p_71920_4_) {
   return this.func_71889_f_(p_71920_1_.func_72805_g(p_71920_2_, p_71920_3_, p_71920_4_));
 }
예제 #8
0
  public boolean func_82542_g(
      IBlockAccess p_82542_1_, int p_82542_2_, int p_82542_3_, int p_82542_4_) {
    int var5 = p_82542_1_.func_72805_g(p_82542_2_, p_82542_3_, p_82542_4_);
    int var6 = var5 & 3;
    float var7 = 0.5F;
    float var8 = 1.0F;
    if ((var5 & 4) != 0) {
      var7 = 0.0F;
      var8 = 0.5F;
    }

    float var9 = 0.0F;
    float var10 = 1.0F;
    float var11 = 0.0F;
    float var12 = 0.5F;
    boolean var13 = true;
    int var14;
    int var15;
    int var16;
    if (var6 == 0) {
      var9 = 0.5F;
      var12 = 1.0F;
      var14 = p_82542_1_.func_72798_a(p_82542_2_ + 1, p_82542_3_, p_82542_4_);
      var15 = p_82542_1_.func_72805_g(p_82542_2_ + 1, p_82542_3_, p_82542_4_);
      if (func_82543_e(var14) && (var5 & 4) == (var15 & 4)) {
        var16 = var15 & 3;
        if (var16 == 3
            && !this.func_82540_f(p_82542_1_, p_82542_2_, p_82542_3_, p_82542_4_ + 1, var5)) {
          var12 = 0.5F;
          var13 = false;
        } else if (var16 == 2
            && !this.func_82540_f(p_82542_1_, p_82542_2_, p_82542_3_, p_82542_4_ - 1, var5)) {
          var11 = 0.5F;
          var13 = false;
        }
      }
    } else if (var6 == 1) {
      var10 = 0.5F;
      var12 = 1.0F;
      var14 = p_82542_1_.func_72798_a(p_82542_2_ - 1, p_82542_3_, p_82542_4_);
      var15 = p_82542_1_.func_72805_g(p_82542_2_ - 1, p_82542_3_, p_82542_4_);
      if (func_82543_e(var14) && (var5 & 4) == (var15 & 4)) {
        var16 = var15 & 3;
        if (var16 == 3
            && !this.func_82540_f(p_82542_1_, p_82542_2_, p_82542_3_, p_82542_4_ + 1, var5)) {
          var12 = 0.5F;
          var13 = false;
        } else if (var16 == 2
            && !this.func_82540_f(p_82542_1_, p_82542_2_, p_82542_3_, p_82542_4_ - 1, var5)) {
          var11 = 0.5F;
          var13 = false;
        }
      }
    } else if (var6 == 2) {
      var11 = 0.5F;
      var12 = 1.0F;
      var14 = p_82542_1_.func_72798_a(p_82542_2_, p_82542_3_, p_82542_4_ + 1);
      var15 = p_82542_1_.func_72805_g(p_82542_2_, p_82542_3_, p_82542_4_ + 1);
      if (func_82543_e(var14) && (var5 & 4) == (var15 & 4)) {
        var16 = var15 & 3;
        if (var16 == 1
            && !this.func_82540_f(p_82542_1_, p_82542_2_ + 1, p_82542_3_, p_82542_4_, var5)) {
          var10 = 0.5F;
          var13 = false;
        } else if (var16 == 0
            && !this.func_82540_f(p_82542_1_, p_82542_2_ - 1, p_82542_3_, p_82542_4_, var5)) {
          var9 = 0.5F;
          var13 = false;
        }
      }
    } else if (var6 == 3) {
      var14 = p_82542_1_.func_72798_a(p_82542_2_, p_82542_3_, p_82542_4_ - 1);
      var15 = p_82542_1_.func_72805_g(p_82542_2_, p_82542_3_, p_82542_4_ - 1);
      if (func_82543_e(var14) && (var5 & 4) == (var15 & 4)) {
        var16 = var15 & 3;
        if (var16 == 1
            && !this.func_82540_f(p_82542_1_, p_82542_2_ + 1, p_82542_3_, p_82542_4_, var5)) {
          var10 = 0.5F;
          var13 = false;
        } else if (var16 == 0
            && !this.func_82540_f(p_82542_1_, p_82542_2_ - 1, p_82542_3_, p_82542_4_, var5)) {
          var9 = 0.5F;
          var13 = false;
        }
      }
    }

    this.func_71905_a(var9, var7, var11, var10, var8, var12);
    return var13;
  }
예제 #9
0
 private boolean func_82540_f(
     IBlockAccess p_82540_1_, int p_82540_2_, int p_82540_3_, int p_82540_4_, int p_82540_5_) {
   int var6 = p_82540_1_.func_72798_a(p_82540_2_, p_82540_3_, p_82540_4_);
   return func_82543_e(var6)
       && p_82540_1_.func_72805_g(p_82540_2_, p_82540_3_, p_82540_4_) == p_82540_5_;
 }
예제 #10
0
 public int func_71865_a(
     IBlockAccess p_71865_1_, int p_71865_2_, int p_71865_3_, int p_71865_4_, int p_71865_5_) {
   return (p_71865_1_.func_72805_g(p_71865_2_, p_71865_3_, p_71865_4_) & 8) > 0 ? 15 : 0;
 }
예제 #11
0
 public void func_71902_a(
     IBlockAccess p_71902_1_, int p_71902_2_, int p_71902_3_, int p_71902_4_) {
   int var5 = p_71902_1_.func_72805_g(p_71902_2_, p_71902_3_, p_71902_4_);
   this.func_82534_e(var5);
 }