本文整理汇总了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_);
}
}
}
}
}
示例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;
}
}
示例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;
}
示例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;
}
}
}
示例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);
}
示例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;
}
示例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();
}