本文整理汇总了Java中net.minecraft.block.BlockFluid.func_72199_d方法的典型用法代码示例。如果您正苦于以下问题:Java BlockFluid.func_72199_d方法的具体用法?Java BlockFluid.func_72199_d怎么用?Java BlockFluid.func_72199_d使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.block.BlockFluid
的用法示例。
在下文中一共展示了BlockFluid.func_72199_d方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: func_72918_a
import net.minecraft.block.BlockFluid; //导入方法依赖的package包/类
public boolean func_72918_a(AxisAlignedBB p_72918_1_, Material p_72918_2_, Entity p_72918_3_) {
int var4 = MathHelper.func_76128_c(p_72918_1_.field_72340_a);
int var5 = MathHelper.func_76128_c(p_72918_1_.field_72336_d + 1.0D);
int var6 = MathHelper.func_76128_c(p_72918_1_.field_72338_b);
int var7 = MathHelper.func_76128_c(p_72918_1_.field_72337_e + 1.0D);
int var8 = MathHelper.func_76128_c(p_72918_1_.field_72339_c);
int var9 = MathHelper.func_76128_c(p_72918_1_.field_72334_f + 1.0D);
if(!this.func_72904_c(var4, var6, var8, var5, var7, var9)) {
return false;
} else {
boolean var10 = false;
Vec3 var11 = this.func_82732_R().func_72345_a(0.0D, 0.0D, 0.0D);
for(int var12 = var4; var12 < var5; ++var12) {
for(int var13 = var6; var13 < var7; ++var13) {
for(int var14 = var8; var14 < var9; ++var14) {
Block var15 = Block.field_71973_m[this.func_72798_a(var12, var13, var14)];
if(var15 != null && var15.field_72018_cp == p_72918_2_) {
double var16 = (double)((float)(var13 + 1) - BlockFluid.func_72199_d(this.func_72805_g(var12, var13, var14)));
if((double)var7 >= var16) {
var10 = true;
var15.func_71901_a(this, var12, var13, var14, p_72918_3_, var11);
}
}
}
}
}
if(var11.func_72433_c() > 0.0D && p_72918_3_.func_96092_aw()) {
var11 = var11.func_72432_b();
double var18 = 0.014D;
p_72918_3_.field_70159_w += var11.field_72450_a * var18;
p_72918_3_.field_70181_x += var11.field_72448_b * var18;
p_72918_3_.field_70179_y += var11.field_72449_c * var18;
}
return var10;
}
}
示例2: func_70055_a
import net.minecraft.block.BlockFluid; //导入方法依赖的package包/类
public boolean func_70055_a(Material p_70055_1_) {
double var2 = this.field_70163_u + (double)this.func_70047_e();
int var4 = MathHelper.func_76128_c(this.field_70165_t);
int var5 = MathHelper.func_76141_d((float)MathHelper.func_76128_c(var2));
int var6 = MathHelper.func_76128_c(this.field_70161_v);
int var7 = this.field_70170_p.func_72798_a(var4, var5, var6);
if(var7 != 0 && Block.field_71973_m[var7].field_72018_cp == p_70055_1_) {
float var8 = BlockFluid.func_72199_d(this.field_70170_p.func_72805_g(var4, var5, var6)) - 0.11111111F;
float var9 = (float)(var5 + 1) - var8;
return var2 < (double)var9;
} else {
return false;
}
}
示例3: func_70071_h_
import net.minecraft.block.BlockFluid; //导入方法依赖的package包/类
public void func_70071_h_() {
this.field_70169_q = this.field_70165_t;
this.field_70167_r = this.field_70163_u;
this.field_70166_s = this.field_70161_v;
this.field_70181_x -= (double)this.field_70545_g;
this.func_70091_d(this.field_70159_w, this.field_70181_x, this.field_70179_y);
this.field_70159_w *= 0.9800000190734863D;
this.field_70181_x *= 0.9800000190734863D;
this.field_70179_y *= 0.9800000190734863D;
if(this.field_70547_e-- <= 0) {
this.func_70106_y();
}
if(this.field_70122_E) {
if(Math.random() < 0.5D) {
this.func_70106_y();
}
this.field_70159_w *= 0.699999988079071D;
this.field_70179_y *= 0.699999988079071D;
}
Material var1 = this.field_70170_p.func_72803_f(MathHelper.func_76128_c(this.field_70165_t), MathHelper.func_76128_c(this.field_70163_u), MathHelper.func_76128_c(this.field_70161_v));
if(var1.func_76224_d() || var1.func_76220_a()) {
double var2 = (double)((float)(MathHelper.func_76128_c(this.field_70163_u) + 1) - BlockFluid.func_72199_d(this.field_70170_p.func_72805_g(MathHelper.func_76128_c(this.field_70165_t), MathHelper.func_76128_c(this.field_70163_u), MathHelper.func_76128_c(this.field_70161_v))));
if(this.field_70163_u < var2) {
this.func_70106_y();
}
}
}
示例4: func_74584_a
import net.minecraft.block.BlockFluid; //导入方法依赖的package包/类
public static int func_74584_a(World p_74584_0_, EntityLivingBase p_74584_1_, float p_74584_2_) {
Vec3 var3 = func_74585_b(p_74584_1_, (double)p_74584_2_);
ChunkPosition var4 = new ChunkPosition(var3);
int var5 = p_74584_0_.func_72798_a(var4.field_76930_a, var4.field_76928_b, var4.field_76929_c);
if(var5 != 0 && Block.field_71973_m[var5].field_72018_cp.func_76224_d()) {
float var6 = BlockFluid.func_72199_d(p_74584_0_.func_72805_g(var4.field_76930_a, var4.field_76928_b, var4.field_76929_c)) - 0.11111111F;
float var7 = (float)(var4.field_76928_b + 1) - var6;
if(var3.field_72448_b >= (double)var7) {
var5 = p_74584_0_.func_72798_a(var4.field_76930_a, var4.field_76928_b + 1, var4.field_76929_c);
}
}
return var5;
}
示例5: func_78596_a
import net.minecraft.block.BlockFluid; //导入方法依赖的package包/类
public float func_78596_a(int p_78596_1_, int p_78596_2_, int p_78596_3_, Material p_78596_4_) {
int var5 = 0;
float var6 = 0.0F;
for(int var7 = 0; var7 < 4; ++var7) {
int var8 = p_78596_1_ - (var7 & 1);
int var10 = p_78596_3_ - (var7 >> 1 & 1);
if(this.field_78669_a.func_72803_f(var8, p_78596_2_ + 1, var10) == p_78596_4_) {
return 1.0F;
}
Material var11 = this.field_78669_a.func_72803_f(var8, p_78596_2_, var10);
if(var11 == p_78596_4_) {
int var12 = this.field_78669_a.func_72805_g(var8, p_78596_2_, var10);
if(var12 >= 8 || var12 == 0) {
var6 += BlockFluid.func_72199_d(var12) * 10.0F;
var5 += 10;
}
var6 += BlockFluid.func_72199_d(var12);
++var5;
} else if(!var11.func_76220_a()) {
++var6;
++var5;
}
}
return 1.0F - var6 / (float)var5;
}
示例6: func_70071_h_
import net.minecraft.block.BlockFluid; //导入方法依赖的package包/类
public void func_70071_h_() {
this.field_70169_q = this.field_70165_t;
this.field_70167_r = this.field_70163_u;
this.field_70166_s = this.field_70161_v;
if(this.field_70563_a == Material.field_76244_g) {
this.field_70552_h = 0.2F;
this.field_70553_i = 0.3F;
this.field_70551_j = 1.0F;
} else {
this.field_70552_h = 1.0F;
this.field_70553_i = 16.0F / (float)(40 - this.field_70564_aq + 16);
this.field_70551_j = 4.0F / (float)(40 - this.field_70564_aq + 8);
}
this.field_70181_x -= (double)this.field_70545_g;
if(this.field_70564_aq-- > 0) {
this.field_70159_w *= 0.02D;
this.field_70181_x *= 0.02D;
this.field_70179_y *= 0.02D;
this.func_70536_a(113);
} else {
this.func_70536_a(112);
}
this.func_70091_d(this.field_70159_w, this.field_70181_x, this.field_70179_y);
this.field_70159_w *= 0.9800000190734863D;
this.field_70181_x *= 0.9800000190734863D;
this.field_70179_y *= 0.9800000190734863D;
if(this.field_70547_e-- <= 0) {
this.func_70106_y();
}
if(this.field_70122_E) {
if(this.field_70563_a == Material.field_76244_g) {
this.func_70106_y();
this.field_70170_p.func_72869_a("splash", this.field_70165_t, this.field_70163_u, this.field_70161_v, 0.0D, 0.0D, 0.0D);
} else {
this.func_70536_a(114);
}
this.field_70159_w *= 0.699999988079071D;
this.field_70179_y *= 0.699999988079071D;
}
Material var1 = this.field_70170_p.func_72803_f(MathHelper.func_76128_c(this.field_70165_t), MathHelper.func_76128_c(this.field_70163_u), MathHelper.func_76128_c(this.field_70161_v));
if(var1.func_76224_d() || var1.func_76220_a()) {
double var2 = (double)((float)(MathHelper.func_76128_c(this.field_70163_u) + 1) - BlockFluid.func_72199_d(this.field_70170_p.func_72805_g(MathHelper.func_76128_c(this.field_70165_t), MathHelper.func_76128_c(this.field_70163_u), MathHelper.func_76128_c(this.field_70161_v))));
if(this.field_70163_u < var2) {
this.func_70106_y();
}
}
}