@SideOnly(Side.CLIENT)
  public int func_71895_b(
      IBlockAccess p_71895_1_, int p_71895_2_, int p_71895_3_, int p_71895_4_, int p_71895_5_) {
    if (p_71895_5_ == 1) {
      return this.field_72059_bZ - 1;
    } else if (p_71895_5_ == 0) {
      return this.field_72059_bZ - 1;
    } else {
      int var6 = p_71895_1_.func_72798_a(p_71895_2_, p_71895_3_, p_71895_4_ - 1);
      int var7 = p_71895_1_.func_72798_a(p_71895_2_, p_71895_3_, p_71895_4_ + 1);
      int var8 = p_71895_1_.func_72798_a(p_71895_2_ - 1, p_71895_3_, p_71895_4_);
      int var9 = p_71895_1_.func_72798_a(p_71895_2_ + 1, p_71895_3_, p_71895_4_);
      byte var10 = 3;
      if (Block.field_71970_n[var6] && !Block.field_71970_n[var7]) {
        var10 = 3;
      }

      if (Block.field_71970_n[var7] && !Block.field_71970_n[var6]) {
        var10 = 2;
      }

      if (Block.field_71970_n[var8] && !Block.field_71970_n[var9]) {
        var10 = 5;
      }

      if (Block.field_71970_n[var9] && !Block.field_71970_n[var8]) {
        var10 = 4;
      }

      return p_71895_5_ == var10 ? this.field_72059_bZ + 1 : this.field_72059_bZ;
    }
  }
Ejemplo n.º 2
0
 @SideOnly(Side.CLIENT)
 public boolean func_71877_c(
     IBlockAccess p_71877_1_, int p_71877_2_, int p_71877_3_, int p_71877_4_, int p_71877_5_) {
   if (p_71877_1_.func_72798_a(p_71877_2_, p_71877_3_, p_71877_4_) == this.field_71990_ca) {
     return false;
   } else {
     boolean var6 =
         p_71877_1_.func_72798_a(p_71877_2_ - 1, p_71877_3_, p_71877_4_) == this.field_71990_ca
             && p_71877_1_.func_72798_a(p_71877_2_ - 2, p_71877_3_, p_71877_4_)
                 != this.field_71990_ca;
     boolean var7 =
         p_71877_1_.func_72798_a(p_71877_2_ + 1, p_71877_3_, p_71877_4_) == this.field_71990_ca
             && p_71877_1_.func_72798_a(p_71877_2_ + 2, p_71877_3_, p_71877_4_)
                 != this.field_71990_ca;
     boolean var8 =
         p_71877_1_.func_72798_a(p_71877_2_, p_71877_3_, p_71877_4_ - 1) == this.field_71990_ca
             && p_71877_1_.func_72798_a(p_71877_2_, p_71877_3_, p_71877_4_ - 2)
                 != this.field_71990_ca;
     boolean var9 =
         p_71877_1_.func_72798_a(p_71877_2_, p_71877_3_, p_71877_4_ + 1) == this.field_71990_ca
             && p_71877_1_.func_72798_a(p_71877_2_, p_71877_3_, p_71877_4_ + 2)
                 != this.field_71990_ca;
     boolean var10 = var6 || var7;
     boolean var11 = var8 || var9;
     return var10 && p_71877_5_ == 4
         ? true
         : (var10 && p_71877_5_ == 5
             ? true
             : (var11 && p_71877_5_ == 2 ? true : var11 && p_71877_5_ == 3));
   }
 }
Ejemplo n.º 3
0
 public void func_71902_a(
     IBlockAccess p_71902_1_, int p_71902_2_, int p_71902_3_, int p_71902_4_) {
   float var5;
   float var6;
   if (p_71902_1_.func_72798_a(p_71902_2_ - 1, p_71902_3_, p_71902_4_) != this.field_71990_ca
       && p_71902_1_.func_72798_a(p_71902_2_ + 1, p_71902_3_, p_71902_4_) != this.field_71990_ca) {
     var5 = 0.125F;
     var6 = 0.5F;
     this.func_71905_a(0.5F - var5, 0.0F, 0.5F - var6, 0.5F + var5, 1.0F, 0.5F + var6);
   } else {
     var5 = 0.5F;
     var6 = 0.125F;
     this.func_71905_a(0.5F - var5, 0.0F, 0.5F - var6, 0.5F + var5, 1.0F, 0.5F + var6);
   }
 }
Ejemplo n.º 4
0
 @SideOnly(Side.CLIENT)
 public boolean func_71877_c(
     IBlockAccess p_71877_1_, int p_71877_2_, int p_71877_3_, int p_71877_4_, int p_71877_5_) {
   int var6 = p_71877_1_.func_72798_a(p_71877_2_, p_71877_3_, p_71877_4_);
   return !this.field_72131_c && var6 == this.field_71990_ca
       ? false
       : super.func_71877_c(p_71877_1_, p_71877_2_, p_71877_3_, p_71877_4_, p_71877_5_);
 }
Ejemplo n.º 5
0
  public void func_71902_a(
      IBlockAccess p_71902_1_, int p_71902_2_, int p_71902_3_, int p_71902_4_) {
    float var5 = 0.4375F;
    float var6 = 0.5625F;
    float var7 = 0.4375F;
    float var8 = 0.5625F;
    boolean var9 =
        this.func_72161_e(p_71902_1_.func_72798_a(p_71902_2_, p_71902_3_, p_71902_4_ - 1));
    boolean var10 =
        this.func_72161_e(p_71902_1_.func_72798_a(p_71902_2_, p_71902_3_, p_71902_4_ + 1));
    boolean var11 =
        this.func_72161_e(p_71902_1_.func_72798_a(p_71902_2_ - 1, p_71902_3_, p_71902_4_));
    boolean var12 =
        this.func_72161_e(p_71902_1_.func_72798_a(p_71902_2_ + 1, p_71902_3_, p_71902_4_));
    if ((!var11 || !var12) && (var11 || var12 || var9 || var10)) {
      if (var11 && !var12) {
        var5 = 0.0F;
      } else if (!var11 && var12) {
        var6 = 1.0F;
      }
    } else {
      var5 = 0.0F;
      var6 = 1.0F;
    }

    if ((!var9 || !var10) && (var11 || var12 || var9 || var10)) {
      if (var9 && !var10) {
        var7 = 0.0F;
      } else if (!var9 && var10) {
        var8 = 1.0F;
      }
    } else {
      var7 = 0.0F;
      var8 = 1.0F;
    }

    this.func_71905_a(var5, 0.0F, var7, var6, 1.0F, var8);
  }