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

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

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

AxisAlignedBB.union介绍

暂无

代码示例

代码示例来源:origin: P3pp3rF1y/AncientWarfare2

@Override
public AxisAlignedBB union(AxisAlignedBB other) {
  return setBB(super.union(other));
}

代码示例来源:origin: amadornes/MCMultiPart

@Override
public AxisAlignedBB getRenderBoundingBox() {
  return parts.values().stream().map(IPartInfo::getTile).filter(Objects::nonNull)//
      .reduce(super.getRenderBoundingBox(), (a, b) -> a.union(b.getPartRenderBoundingBox()), (a, b) -> b);
}

代码示例来源:origin: AlgorithmX2/Chisels-and-Bits

AxisAlignedBB combined = lastBox.union( newBox );
o.remove( offset );
  if ( !o.isEmpty() && isNextTo( combined, lastBox ) )
    combined = lastBox.union( combined );
    o.remove( offset );

代码示例来源:origin: PrinceOfAmber/Cyclic

@Override
@SideOnly(Side.CLIENT)
public AxisAlignedBB getSelectedBoundingBox(IBlockState state, World world, BlockPos pos) {
 AxisAlignedBB box = AABB_NONE.offset(pos);
 state = state.getActualState(world, pos);
 for (EnumFacing side : EnumFacing.VALUES) {
  if (state.getValue(PROPERTIES.get(side)).isHollow() == false) {
   box = box.union(AABB_SIDES.get(side).offset(pos));
  }
 }
 return box;
}

代码示例来源:origin: RS485/LogisticsPipes

AxisAlignedBB[] bb = new AxisAlignedBB[1];
bb[0] = new AxisAlignedBB(0.5, 0.5, 0.5, 0.5, 0.5, 0.5);
objectsToRender.forEach(it -> bb[0] = bb[0].union(it.getModel().bounds().toAABB()));
objectsToRender.forEach(it -> bb[0] = bb[0].union(it.getModel().bounds().toAABB()));
objectsToRender.forEach(it -> it.getModel().apply(new LPTranslation(0.5 -(bb[0].maxX + bb[0].minX) / 2, 0.5 -(bb[0].maxY + bb[0].minY) / 2, 0.5 -(bb[0].maxZ + bb[0].minZ) / 2)));

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

EntityPlayer player = (EntityPlayer) entityIn;
if (player.isRiding() && !player.getRidingEntity().isDead && player.getRidingEntity() instanceof PhysicsWrapperEntity) {
  AxisAlignedBB axisalignedbb = player.getEntityBoundingBox().union(player.getRidingEntity().getEntityBoundingBox()).expand(1.0D, 0.0D, 1.0D);

代码示例来源:origin: AlgorithmX2/Chisels-and-Bits

r = r.union( bb );

代码示例来源:origin: AlgorithmX2/Chisels-and-Bits

final AxisAlignedBB b = otherEnd.getBoundingBox( VoxelBlob.NULL_BLOB, false ).offset( other.blockPos.getX(), other.blockPos.getY(), other.blockPos.getZ() );
final AxisAlignedBB bb = a.union( b );

相关文章