當前位置: 首頁>>代碼示例>>Java>>正文


Java Direction.field_71581_b方法代碼示例

本文整理匯總了Java中net.minecraft.util.Direction.field_71581_b方法的典型用法代碼示例。如果您正苦於以下問題:Java Direction.field_71581_b方法的具體用法?Java Direction.field_71581_b怎麽用?Java Direction.field_71581_b使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在net.minecraft.util.Direction的用法示例。


在下文中一共展示了Direction.field_71581_b方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: func_96440_m

import net.minecraft.util.Direction; //導入方法依賴的package包/類
public void func_96440_m(int p_96440_1_, int p_96440_2_, int p_96440_3_, int p_96440_4_) {
   for(int var5 = 0; var5 < 4; ++var5) {
      int var6 = p_96440_1_ + Direction.field_71583_a[var5];
      int var7 = p_96440_3_ + Direction.field_71581_b[var5];
      int var8 = this.func_72798_a(var6, p_96440_2_, var7);
      if(var8 != 0) {
         Block var9 = Block.field_71973_m[var8];
         if(Block.field_94346_cn.func_94487_f(var8)) {
            var9.func_71863_a(this, var6, p_96440_2_, var7, p_96440_4_);
         } else if(Block.func_71932_i(var8)) {
            var6 += Direction.field_71583_a[var5];
            var7 += Direction.field_71581_b[var5];
            var8 = this.func_72798_a(var6, p_96440_2_, var7);
            var9 = Block.field_71973_m[var8];
            if(Block.field_94346_cn.func_94487_f(var8)) {
               var9.func_71863_a(this, var6, p_96440_2_, var7, p_96440_4_);
            }
         }
      }
   }

}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:23,代碼來源:World.java

示例2: 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

示例3: func_72220_e

import net.minecraft.util.Direction; //導入方法依賴的package包/類
protected int func_72220_e(World p_72220_1_, int p_72220_2_, int p_72220_3_, int p_72220_4_, int p_72220_5_) {
   int var6 = super.func_72220_e(p_72220_1_, p_72220_2_, p_72220_3_, p_72220_4_, p_72220_5_);
   int var7 = func_72217_d(p_72220_5_);
   int var8 = p_72220_2_ + Direction.field_71583_a[var7];
   int var9 = p_72220_4_ + Direction.field_71581_b[var7];
   int var10 = p_72220_1_.func_72798_a(var8, p_72220_3_, var9);
   if(var10 > 0) {
      if(Block.field_71973_m[var10].func_96468_q_()) {
         var6 = Block.field_71973_m[var10].func_94328_b_(p_72220_1_, var8, p_72220_3_, var9, Direction.field_71580_e[var7]);
      } else if(var6 < 15 && Block.func_71932_i(var10)) {
         var8 += Direction.field_71583_a[var7];
         var9 += Direction.field_71581_b[var7];
         var10 = p_72220_1_.func_72798_a(var8, p_72220_3_, var9);
         if(var10 > 0 && Block.field_71973_m[var10].func_96468_q_()) {
            var6 = Block.field_71973_m[var10].func_94328_b_(p_72220_1_, var8, p_72220_3_, var9, Direction.field_71580_e[var7]);
         }
      }
   }

   return var6;
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:22,代碼來源:BlockComparator.java

示例4: 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

示例5: func_72220_e

import net.minecraft.util.Direction; //導入方法依賴的package包/類
protected int func_72220_e(World p_72220_1_, int p_72220_2_, int p_72220_3_, int p_72220_4_, int p_72220_5_) {
   int var6 = func_72217_d(p_72220_5_);
   int var7 = p_72220_2_ + Direction.field_71583_a[var6];
   int var8 = p_72220_4_ + Direction.field_71581_b[var6];
   int var9 = p_72220_1_.func_72878_l(var7, p_72220_3_, var8, Direction.field_71582_c[var6]);
   return var9 >= 15?var9:Math.max(var9, p_72220_1_.func_72798_a(var7, p_72220_3_, var8) == Block.field_72075_av.field_71990_ca?p_72220_1_.func_72805_g(var7, p_72220_3_, var8):0);
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:8,代碼來源:BlockRedstoneLogic.java

示例6: func_71854_d

import net.minecraft.util.Direction; //導入方法依賴的package包/類
public boolean func_71854_d(World p_71854_1_, int p_71854_2_, int p_71854_3_, int p_71854_4_) {
   int var5 = func_72217_d(p_71854_1_.func_72805_g(p_71854_2_, p_71854_3_, p_71854_4_));
   p_71854_2_ += Direction.field_71583_a[var5];
   p_71854_4_ += Direction.field_71581_b[var5];
   int var6 = p_71854_1_.func_72798_a(p_71854_2_, p_71854_3_, p_71854_4_);
   return var6 == Block.field_71951_J.field_71990_ca && BlockLog.func_72141_e(p_71854_1_.func_72805_g(p_71854_2_, p_71854_3_, p_71854_4_)) == 3;
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:8,代碼來源:BlockCocoa.java

示例7: func_82404_a

import net.minecraft.util.Direction; //導入方法依賴的package包/類
public void func_82404_a(EntityItemFrame p_82404_1_, double p_82404_2_, double p_82404_4_, double p_82404_6_, float p_82404_8_, float p_82404_9_) {
   GL11.glPushMatrix();
   float var10 = (float)(p_82404_1_.field_70165_t - p_82404_2_) - 0.5F;
   float var11 = (float)(p_82404_1_.field_70163_u - p_82404_4_) - 0.5F;
   float var12 = (float)(p_82404_1_.field_70161_v - p_82404_6_) - 0.5F;
   int var13 = p_82404_1_.field_70523_b + Direction.field_71583_a[p_82404_1_.field_82332_a];
   int var14 = p_82404_1_.field_70524_c;
   int var15 = p_82404_1_.field_70521_d + Direction.field_71581_b[p_82404_1_.field_82332_a];
   GL11.glTranslatef((float)var13 - var10, (float)var14 - var11, (float)var15 - var12);
   this.func_82403_a(p_82404_1_);
   this.func_82402_b(p_82404_1_);
   GL11.glPopMatrix();
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:14,代碼來源:RenderItemFrame.java


注:本文中的net.minecraft.util.Direction.field_71581_b方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。