本文整理了Java中net.minecraft.world.World.getBlockDensity()
方法的一些代码示例,展示了World.getBlockDensity()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。World.getBlockDensity()
方法的具体详情如下:
包路径:net.minecraft.world.World
类名称:World
方法名:getBlockDensity
暂无
代码示例来源:origin: SleepyTrousers/EnderIO
@Override
public float getBlockDensity(@Nonnull Vec3d vec, @Nonnull AxisAlignedBB bb) {
return wrapped.getBlockDensity(vec, bb);
}
代码示例来源:origin: amadornes/MCMultiPart
@Override
public float getBlockDensity(Vec3d vec, AxisAlignedBB bb) {
return getActualWorld().getBlockDensity(vec, bb);
}
代码示例来源:origin: Darkhax-Minecraft/Bookshelf
d7 = d7 / d13;
d9 = d9 / d13;
final double d14 = this.world.getBlockDensity(position, entity.getEntityBoundingBox());
final double d10 = (1.0D - distanceFrom) * d14;
entity.attackEntityFrom(DamageSource.causeExplosionDamage(this), (int) ((d10 * d10 + d10) / 2.0D * 7.0D * size + 1.0D));
代码示例来源:origin: ValkyrienWarfare/Valkyrien-Warfare-Revamped
d7 = d7 / d13;
d9 = d9 / d13;
double d14 = (double) this.worldObj.getBlockDensity(vec3d, entity.getEntityBoundingBox());
double d10 = (1.0D - d12) * d14;
entity.attackEntityFrom(DamageSource.causeExplosionDamage(this), (float) ((int) ((d10 * d10 + d10) + this.explosionDamage / 2.0D)));
代码示例来源:origin: PrinceOfAmber/Cyclic
d7 = d7 / d13;
d9 = d9 / d13;
double d14 = (double) this.world.getBlockDensity(vec3d, entity.getEntityBoundingBox());
double d10 = (1.0D - d12) * d14;
if (entity instanceof EntityPlayer == false) {//special: do not harm players at all
代码示例来源:origin: PrinceOfAmber/Cyclic
d7 = d7 / d13;
d9 = d9 / d13;
double d14 = (double) this.world.getBlockDensity(vec3d, entity.getEntityBoundingBox());
double d10 = (1.0D - d12) * d14;
代码示例来源:origin: ValkyrienWarfare/Valkyrien-Warfare-Revamped
d7 = d7 / d13;
d9 = d9 / d13;
double d14 = (double) this.worldObj.getBlockDensity(vec3d, entity.getEntityBoundingBox());
double d10 = (1.0D - d12) * d14;
entity.attackEntityFrom(DamageSource.causeExplosionDamage(this), (float) ((int) ((d10 * d10 + d10) + this.explosionDamage / 2.0D)));
代码示例来源:origin: Alex-the-666/Ice_and_Fire
double d9 = entity.posZ - this.explosionZ;
double d13 = MathHelper.sqrt(d5 * d5 + d7 * d7 + d9 * d9);
double d14 = this.worldObj.getBlockDensity(Vec3d, entity.getEntityBoundingBox());
double d10 = (1.0D - d12) * d14;
if (d13 != 0.0D && this.exploder != null) {
代码示例来源:origin: Alex-the-666/Ice_and_Fire
double d9 = entity.posZ - this.explosionZ;
double d13 = MathHelper.sqrt(d5 * d5 + d7 * d7 + d9 * d9);
double d14 = this.worldObj.getBlockDensity(Vec3d, entity.getEntityBoundingBox());
double d10 = (1.0D - d12) * d14;
if (d13 != 0.0D) {
代码示例来源:origin: Alex-the-666/Ice_and_Fire
d7 = d7 / d13;
d9 = d9 / d13;
double d14 = (double) this.worldObj.getBlockDensity(vec3d, entity.getEntityBoundingBox());
double d10 = (1.0D - d12) * d14;
代码示例来源:origin: Alex-the-666/Ice_and_Fire
double d9 = entity.posZ - this.explosionZ;
double d13 = MathHelper.sqrt(d5 * d5 + d7 * d7 + d9 * d9);
double d14 = this.worldObj.getBlockDensity(Vec3d, entity.getEntityBoundingBox());
double d10 = (1.0D - d12) * d14;
if (d13 != 0.0D) {
代码示例来源:origin: Alex-the-666/Ice_and_Fire
d7 = d7 / d13;
d9 = d9 / d13;
double d14 = this.worldObj.getBlockDensity(Vec3d, entity.getEntityBoundingBox());
double d10 = (1.0D - d12) * d14;
if (exploder instanceof EntityDragonBase) {
内容来源于网络,如有侵权,请联系作者删除!