net.minecraft.util.math.AxisAlignedBB.shrink()方法的使用及代码示例

x33g5p2x  于11个月前 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(18)

本文整理了Java中net.minecraft.util.math.AxisAlignedBB.shrink()方法的一些代码示例,展示了AxisAlignedBB.shrink()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AxisAlignedBB.shrink()方法的具体详情如下:
包路径:net.minecraft.util.math.AxisAlignedBB
类名称:AxisAlignedBB
方法名:shrink

AxisAlignedBB.shrink介绍

暂无

代码示例

代码示例来源:origin: Vazkii/Botania

@Override
public AxisAlignedBB getWireframeAABB(World world, BlockPos pos) {
  return FULL_BLOCK_AABB.offset(pos).shrink(1.0/16.0);
}

代码示例来源:origin: SleepyTrousers/EnderIO

@Override
public boolean handleWaterMovement() {
 super.handleWaterMovement();
 if (!inWater) {
  if (this.world.handleMaterialAcceleration(this.getEntityBoundingBox().grow(0.0D, -0.4000000059604645D, 0.0D).shrink(0.001D), Material.LAVA, this)) {
   this.fallDistance = 0.0F;
   this.inWater = true;
   this.extinguish();
  }
 }
 return this.inWater;
}

代码示例来源:origin: ValkyrienWarfare/Valkyrien-Warfare-Revamped

if (wrapper != null) {
  Polygon poly = new Polygon(boundingBox, wrapper.wrapping.coordTransform.lToWTransform);
  boundingBox = poly.getEnclosedAABB().shrink(.3D);
  toReturn.addAll(this.getEntitiesInAABBexcludingOriginal(entityIn, boundingBox, predicate));

代码示例来源:origin: jabelar/ExampleMod-1.12

AxisAlignedBB bb = entityIn.getEntityBoundingBox().grow(0.0D, -0.4000000059604645D, 0.0D).shrink(0.001D);

代码示例来源:origin: jabelar/ExampleMod-1.12

AxisAlignedBB bb = entityIn.getEntityBoundingBox().grow(0.0D, -0.4000000059604645D, 0.0D).shrink(0.001D);

代码示例来源:origin: thraaawn/CompactMachines

double scale = 1.0d - (progress * (1.0f - ((Math.sin(Math.toDegrees(RenderTickCounter.renderTicks) / 4000) + 1.0f) * 0.1f)));
scale = Math.min(scale, 0.9d);
cube = cube.shrink(scale * te.getActiveMagnitude());
extraLength = scale * te.getActiveMagnitude() * 2;

相关文章