Java 类net.minecraft.server.AxisAlignedBB 实例源码

项目:Almura-Server    文件:ActivationRange.java   
/**
 * Utility method to grow an AABB without creating a new AABB or touching
 * the pool, so we can re-use ones we have.
 *
 * @param target
 * @param source
 * @param x
 * @param y
 * @param z
 */
public static void growBB(AxisAlignedBB target, AxisAlignedBB source, int x, int y, int z)
{
    target.a = source.a - x;
    target.b = source.b - y;
    target.c = source.c - z;
    target.d = source.d + x;
    target.e = source.e + y;
    target.f = source.f + z;
}
项目:Tweakkit-Server    文件:ActivationRange.java   
/**
 * Utility method to grow an AABB without creating a new AABB or touching
 * the pool, so we can re-use ones we have.
 *
 * @param target
 * @param source
 * @param x
 * @param y
 * @param z
 */
public static void growBB(AxisAlignedBB target, AxisAlignedBB source, int x, int y, int z)
{
    target.a = source.a - x;
    target.b = source.b - y;
    target.c = source.c - z;
    target.d = source.d + x;
    target.e = source.e + y;
    target.f = source.f + z;
}