当前位置: 首页>>代码示例>>Java>>正文


Java Direction.field_71580_e方法代码示例

本文整理汇总了Java中net.minecraft.util.Direction.field_71580_e方法的典型用法代码示例。如果您正苦于以下问题:Java Direction.field_71580_e方法的具体用法?Java Direction.field_71580_e怎么用?Java Direction.field_71580_e使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.minecraft.util.Direction的用法示例。


在下文中一共展示了Direction.field_71580_e方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: func_72148_a

import net.minecraft.util.Direction; //导入方法依赖的package包/类
@SideOnly(Side.CLIENT)
public static boolean func_72148_a(IBlockAccess p_72148_0_, int p_72148_1_, int p_72148_2_, int p_72148_3_, int p_72148_4_, int p_72148_5_) {
   int var6 = p_72148_1_ + Direction.field_71583_a[p_72148_5_];
   int var8 = p_72148_3_ + Direction.field_71581_b[p_72148_5_];
   int var9 = p_72148_0_.func_72798_a(var6, p_72148_2_, var8);
   boolean var10 = (p_72148_4_ & 2) == 2;
   int var11;
   if(var9 == Block.field_72064_bT.field_71990_ca) {
      var11 = p_72148_0_.func_72805_g(var6, p_72148_2_, var8);
      int var13 = var11 & 3;
      return var13 == Direction.field_71580_e[p_72148_5_];
   } else if(var9 == Block.field_72062_bU.field_71990_ca) {
      var11 = p_72148_0_.func_72805_g(var6, p_72148_2_, var8);
      boolean var12 = (var11 & 2) == 2;
      return var10 == var12;
   } else {
      return false;
   }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:20,代码来源:BlockTripWire.java

示例2: func_72173_e

import net.minecraft.util.Direction; //导入方法依赖的package包/类
public static boolean func_72173_e(IBlockAccess p_72173_0_, int p_72173_1_, int p_72173_2_, int p_72173_3_, int p_72173_4_) {
   int var5 = p_72173_0_.func_72798_a(p_72173_1_, p_72173_2_, p_72173_3_);
   if(var5 == Block.field_72075_av.field_71990_ca) {
      return true;
   } else if(var5 == 0) {
      return false;
   } else if(!Block.field_72010_bh.func_94487_f(var5)) {
      return Block.field_71973_m[var5].func_71853_i() && p_72173_4_ != -1;
   } else {
      int var6 = p_72173_0_.func_72805_g(p_72173_1_, p_72173_2_, p_72173_3_);
      return p_72173_4_ == (var6 & 3) || p_72173_4_ == Direction.field_71580_e[var6 & 3];
   }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:14,代码来源:BlockRedstoneWire.java

示例3: func_72149_e

import net.minecraft.util.Direction; //导入方法依赖的package包/类
private void func_72149_e(World p_72149_1_, int p_72149_2_, int p_72149_3_, int p_72149_4_, int p_72149_5_) {
   int var6 = 0;

   while(var6 < 2) {
      int var7 = 1;

      while(true) {
         if(var7 < 42) {
            int var8 = p_72149_2_ + Direction.field_71583_a[var6] * var7;
            int var9 = p_72149_4_ + Direction.field_71581_b[var6] * var7;
            int var10 = p_72149_1_.func_72798_a(var8, p_72149_3_, var9);
            if(var10 == Block.field_72064_bT.field_71990_ca) {
               int var11 = p_72149_1_.func_72805_g(var8, p_72149_3_, var9) & 3;
               if(var11 == Direction.field_71580_e[var6]) {
                  Block.field_72064_bT.func_72143_a(p_72149_1_, var8, p_72149_3_, var9, var10, p_72149_1_.func_72805_g(var8, p_72149_3_, var9), true, var7, p_72149_5_);
               }
            } else if(var10 == Block.field_72062_bU.field_71990_ca) {
               ++var7;
               continue;
            }
         }

         ++var6;
         break;
      }
   }

}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:29,代码来源:BlockTripWire.java

示例4: func_85104_a

import net.minecraft.util.Direction; //导入方法依赖的package包/类
public int func_85104_a(World p_85104_1_, int p_85104_2_, int p_85104_3_, int p_85104_4_, int p_85104_5_, float p_85104_6_, float p_85104_7_, float p_85104_8_, int p_85104_9_) {
   if(p_85104_5_ == 1 || p_85104_5_ == 0) {
      p_85104_5_ = 2;
   }

   return Direction.field_71580_e[Direction.field_71579_d[p_85104_5_]];
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:8,代码来源:BlockCocoa.java

示例5: func_82328_a

import net.minecraft.util.Direction; //导入方法依赖的package包/类
public void func_82328_a(int p_82328_1_) {
   this.field_82332_a = p_82328_1_;
   this.field_70126_B = this.field_70177_z = (float)(p_82328_1_ * 90);
   float var2 = (float)this.func_82329_d();
   float var3 = (float)this.func_82330_g();
   float var4 = (float)this.func_82329_d();
   if(p_82328_1_ != 2 && p_82328_1_ != 0) {
      var2 = 0.5F;
   } else {
      var4 = 0.5F;
      this.field_70177_z = this.field_70126_B = (float)(Direction.field_71580_e[p_82328_1_] * 90);
   }

   var2 /= 32.0F;
   var3 /= 32.0F;
   var4 /= 32.0F;
   float var5 = (float)this.field_70523_b + 0.5F;
   float var6 = (float)this.field_70524_c + 0.5F;
   float var7 = (float)this.field_70521_d + 0.5F;
   float var8 = 0.5625F;
   if(p_82328_1_ == 2) {
      var7 -= var8;
   }

   if(p_82328_1_ == 1) {
      var5 -= var8;
   }

   if(p_82328_1_ == 0) {
      var7 += var8;
   }

   if(p_82328_1_ == 3) {
      var5 += var8;
   }

   if(p_82328_1_ == 2) {
      var5 -= this.func_70517_b(this.func_82329_d());
   }

   if(p_82328_1_ == 1) {
      var7 += this.func_70517_b(this.func_82329_d());
   }

   if(p_82328_1_ == 0) {
      var5 += this.func_70517_b(this.func_82329_d());
   }

   if(p_82328_1_ == 3) {
      var7 -= this.func_70517_b(this.func_82329_d());
   }

   var6 += this.func_70517_b(this.func_82330_g());
   this.func_70107_b((double)var5, (double)var6, (double)var7);
   float var9 = -0.03125F;
   this.field_70121_D.func_72324_b((double)(var5 - var2 - var9), (double)(var6 - var3 - var9), (double)(var7 - var4 - var9), (double)(var5 + var2 + var9), (double)(var6 + var3 + var9), (double)(var7 + var4 + var9));
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:58,代码来源:EntityHanging.java


注:本文中的net.minecraft.util.Direction.field_71580_e方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。