本文整理汇总了Java中net.minecraft.block.BlockRailBase.func_72180_d_方法的典型用法代码示例。如果您正苦于以下问题:Java BlockRailBase.func_72180_d_方法的具体用法?Java BlockRailBase.func_72180_d_怎么用?Java BlockRailBase.func_72180_d_使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.block.BlockRailBase
的用法示例。
在下文中一共展示了BlockRailBase.func_72180_d_方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: func_70495_a
import net.minecraft.block.BlockRailBase; //导入方法依赖的package包/类
@SideOnly(Side.CLIENT)
public Vec3 func_70495_a(double p_70495_1_, double p_70495_3_, double p_70495_5_, double p_70495_7_) {
int var9 = MathHelper.func_76128_c(p_70495_1_);
int var10 = MathHelper.func_76128_c(p_70495_3_);
int var11 = MathHelper.func_76128_c(p_70495_5_);
if(BlockRailBase.func_72180_d_(this.field_70170_p, var9, var10 - 1, var11)) {
--var10;
}
int var12 = this.field_70170_p.func_72798_a(var9, var10, var11);
if(!BlockRailBase.func_72184_d(var12)) {
return null;
} else {
int var13 = this.field_70170_p.func_72805_g(var9, var10, var11);
if(((BlockRailBase)Block.field_71973_m[var12]).func_72183_n()) {
var13 &= 7;
}
p_70495_3_ = (double)var10;
if(var13 >= 2 && var13 <= 5) {
p_70495_3_ = (double)(var10 + 1);
}
int[][] var14 = field_70500_g[var13];
double var15 = (double)(var14[1][0] - var14[0][0]);
double var17 = (double)(var14[1][2] - var14[0][2]);
double var19 = Math.sqrt(var15 * var15 + var17 * var17);
var15 /= var19;
var17 /= var19;
p_70495_1_ += var15 * p_70495_7_;
p_70495_5_ += var17 * p_70495_7_;
if(var14[0][1] != 0 && MathHelper.func_76128_c(p_70495_1_) - var9 == var14[0][0] && MathHelper.func_76128_c(p_70495_5_) - var11 == var14[0][2]) {
p_70495_3_ += (double)var14[0][1];
} else if(var14[1][1] != 0 && MathHelper.func_76128_c(p_70495_1_) - var9 == var14[1][0] && MathHelper.func_76128_c(p_70495_5_) - var11 == var14[1][2]) {
p_70495_3_ += (double)var14[1][1];
}
return this.func_70489_a(p_70495_1_, p_70495_3_, p_70495_5_);
}
}
示例2: func_82146_a
import net.minecraft.block.BlockRailBase; //导入方法依赖的package包/类
public float func_82146_a(Explosion p_82146_1_, World p_82146_2_, int p_82146_3_, int p_82146_4_, int p_82146_5_, Block p_82146_6_) {
return this.func_96096_ay() && (BlockRailBase.func_72184_d(p_82146_6_.field_71990_ca) || BlockRailBase.func_72180_d_(p_82146_2_, p_82146_3_, p_82146_4_ + 1, p_82146_5_))?0.0F:super.func_82146_a(p_82146_1_, p_82146_2_, p_82146_3_, p_82146_4_, p_82146_5_, p_82146_6_);
}
示例3: func_96091_a
import net.minecraft.block.BlockRailBase; //导入方法依赖的package包/类
public boolean func_96091_a(Explosion p_96091_1_, World p_96091_2_, int p_96091_3_, int p_96091_4_, int p_96091_5_, int p_96091_6_, float p_96091_7_) {
return this.func_96096_ay() && (BlockRailBase.func_72184_d(p_96091_6_) || BlockRailBase.func_72180_d_(p_96091_2_, p_96091_3_, p_96091_4_ + 1, p_96091_5_))?false:super.func_96091_a(p_96091_1_, p_96091_2_, p_96091_3_, p_96091_4_, p_96091_5_, p_96091_6_, p_96091_7_);
}
示例4: func_70489_a
import net.minecraft.block.BlockRailBase; //导入方法依赖的package包/类
public Vec3 func_70489_a(double p_70489_1_, double p_70489_3_, double p_70489_5_) {
int var7 = MathHelper.func_76128_c(p_70489_1_);
int var8 = MathHelper.func_76128_c(p_70489_3_);
int var9 = MathHelper.func_76128_c(p_70489_5_);
if(BlockRailBase.func_72180_d_(this.field_70170_p, var7, var8 - 1, var9)) {
--var8;
}
int var10 = this.field_70170_p.func_72798_a(var7, var8, var9);
if(BlockRailBase.func_72184_d(var10)) {
int var11 = this.field_70170_p.func_72805_g(var7, var8, var9);
p_70489_3_ = (double)var8;
if(((BlockRailBase)Block.field_71973_m[var10]).func_72183_n()) {
var11 &= 7;
}
if(var11 >= 2 && var11 <= 5) {
p_70489_3_ = (double)(var8 + 1);
}
int[][] var12 = field_70500_g[var11];
double var13 = 0.0D;
double var15 = (double)var7 + 0.5D + (double)var12[0][0] * 0.5D;
double var17 = (double)var8 + 0.5D + (double)var12[0][1] * 0.5D;
double var19 = (double)var9 + 0.5D + (double)var12[0][2] * 0.5D;
double var21 = (double)var7 + 0.5D + (double)var12[1][0] * 0.5D;
double var23 = (double)var8 + 0.5D + (double)var12[1][1] * 0.5D;
double var25 = (double)var9 + 0.5D + (double)var12[1][2] * 0.5D;
double var27 = var21 - var15;
double var29 = (var23 - var17) * 2.0D;
double var31 = var25 - var19;
if(var27 == 0.0D) {
p_70489_1_ = (double)var7 + 0.5D;
var13 = p_70489_5_ - (double)var9;
} else if(var31 == 0.0D) {
p_70489_5_ = (double)var9 + 0.5D;
var13 = p_70489_1_ - (double)var7;
} else {
double var33 = p_70489_1_ - var15;
double var35 = p_70489_5_ - var19;
var13 = (var33 * var27 + var35 * var31) * 2.0D;
}
p_70489_1_ = var15 + var27 * var13;
p_70489_3_ = var17 + var29 * var13;
p_70489_5_ = var19 + var31 * var13;
if(var29 < 0.0D) {
++p_70489_3_;
}
if(var29 > 0.0D) {
p_70489_3_ += 0.5D;
}
return this.field_70170_p.func_82732_R().func_72345_a(p_70489_1_, p_70489_3_, p_70489_5_);
} else {
return null;
}
}
示例5: func_94502_a
import net.minecraft.block.BlockRailBase; //导入方法依赖的package包/类
private boolean func_94502_a(int p_94502_1_, int p_94502_2_, int p_94502_3_) {
return BlockRailBase.func_72180_d_(this.field_94516_b, p_94502_1_, p_94502_2_, p_94502_3_)?true:(BlockRailBase.func_72180_d_(this.field_94516_b, p_94502_1_, p_94502_2_ + 1, p_94502_3_)?true:BlockRailBase.func_72180_d_(this.field_94516_b, p_94502_1_, p_94502_2_ - 1, p_94502_3_));
}
示例6: func_94501_a
import net.minecraft.block.BlockRailBase; //导入方法依赖的package包/类
private BlockBaseRailLogic func_94501_a(ChunkPosition p_94501_1_) {
return BlockRailBase.func_72180_d_(this.field_94516_b, p_94501_1_.field_76930_a, p_94501_1_.field_76928_b, p_94501_1_.field_76929_c)?new BlockBaseRailLogic(this.field_94518_a, this.field_94516_b, p_94501_1_.field_76930_a, p_94501_1_.field_76928_b, p_94501_1_.field_76929_c):(BlockRailBase.func_72180_d_(this.field_94516_b, p_94501_1_.field_76930_a, p_94501_1_.field_76928_b + 1, p_94501_1_.field_76929_c)?new BlockBaseRailLogic(this.field_94518_a, this.field_94516_b, p_94501_1_.field_76930_a, p_94501_1_.field_76928_b + 1, p_94501_1_.field_76929_c):(BlockRailBase.func_72180_d_(this.field_94516_b, p_94501_1_.field_76930_a, p_94501_1_.field_76928_b - 1, p_94501_1_.field_76929_c)?new BlockBaseRailLogic(this.field_94518_a, this.field_94516_b, p_94501_1_.field_76930_a, p_94501_1_.field_76928_b - 1, p_94501_1_.field_76929_c):null));
}
示例7: func_94506_c
import net.minecraft.block.BlockRailBase; //导入方法依赖的package包/类
private void func_94506_c(BlockBaseRailLogic p_94506_1_) {
this.field_94513_g.add(new ChunkPosition(p_94506_1_.field_94517_c, p_94506_1_.field_94514_d, p_94506_1_.field_94515_e));
boolean var2 = this.func_94510_b(this.field_94517_c, this.field_94514_d, this.field_94515_e - 1);
boolean var3 = this.func_94510_b(this.field_94517_c, this.field_94514_d, this.field_94515_e + 1);
boolean var4 = this.func_94510_b(this.field_94517_c - 1, this.field_94514_d, this.field_94515_e);
boolean var5 = this.func_94510_b(this.field_94517_c + 1, this.field_94514_d, this.field_94515_e);
byte var6 = -1;
if(var2 || var3) {
var6 = 0;
}
if(var4 || var5) {
var6 = 1;
}
if(!this.field_94512_f) {
if(var3 && var5 && !var2 && !var4) {
var6 = 6;
}
if(var3 && var4 && !var2 && !var5) {
var6 = 7;
}
if(var2 && var4 && !var3 && !var5) {
var6 = 8;
}
if(var2 && var5 && !var3 && !var4) {
var6 = 9;
}
}
if(var6 == 0) {
if(BlockRailBase.func_72180_d_(this.field_94516_b, this.field_94517_c, this.field_94514_d + 1, this.field_94515_e - 1)) {
var6 = 4;
}
if(BlockRailBase.func_72180_d_(this.field_94516_b, this.field_94517_c, this.field_94514_d + 1, this.field_94515_e + 1)) {
var6 = 5;
}
}
if(var6 == 1) {
if(BlockRailBase.func_72180_d_(this.field_94516_b, this.field_94517_c + 1, this.field_94514_d + 1, this.field_94515_e)) {
var6 = 2;
}
if(BlockRailBase.func_72180_d_(this.field_94516_b, this.field_94517_c - 1, this.field_94514_d + 1, this.field_94515_e)) {
var6 = 3;
}
}
if(var6 < 0) {
var6 = 0;
}
int var7 = var6;
if(this.field_94512_f) {
var7 = this.field_94516_b.func_72805_g(this.field_94517_c, this.field_94514_d, this.field_94515_e) & 8 | var6;
}
this.field_94516_b.func_72921_c(this.field_94517_c, this.field_94514_d, this.field_94515_e, var7, 3);
}