Merge branch '6.0.x' into 6.1.x

This commit is contained in:
SpaceToad 2014-06-14 18:02:56 +02:00
commit 149e65d2c1
5 changed files with 17 additions and 17 deletions

View file

@ -43,17 +43,17 @@ public class BlockMarker extends BlockContainer {
ForgeDirection dir = ForgeDirection.getOrientation(meta);
switch (dir) {
case DOWN:
return AxisAlignedBB.getAABBPool().getAABB(0.5F - w, 1F - h, 0.5F - w, 0.5F + w, 1F, 0.5F + w);
return AxisAlignedBB.getBoundingBox(0.5F - w, 1F - h, 0.5F - w, 0.5F + w, 1F, 0.5F + w);
case UP:
return AxisAlignedBB.getAABBPool().getAABB(0.5F - w, 0F, 0.5F - w, 0.5F + w, h, 0.5F + w);
return AxisAlignedBB.getBoundingBox(0.5F - w, 0F, 0.5F - w, 0.5F + w, h, 0.5F + w);
case SOUTH:
return AxisAlignedBB.getAABBPool().getAABB(0.5F - w, 0.5F - w, 0F, 0.5F + w, 0.5F + w, h);
return AxisAlignedBB.getBoundingBox(0.5F - w, 0.5F - w, 0F, 0.5F + w, 0.5F + w, h);
case NORTH:
return AxisAlignedBB.getAABBPool().getAABB(0.5F - w, 0.5F - w, 1 - h, 0.5F + w, 0.5F + w, 1);
return AxisAlignedBB.getBoundingBox(0.5F - w, 0.5F - w, 1 - h, 0.5F + w, 0.5F + w, 1);
case EAST:
return AxisAlignedBB.getAABBPool().getAABB(0F, 0.5F - w, 0.5F - w, h, 0.5F + w, 0.5F + w);
return AxisAlignedBB.getBoundingBox(0F, 0.5F - w, 0.5F - w, h, 0.5F + w, 0.5F + w);
default:
return AxisAlignedBB.getAABBPool().getAABB(1 - h, 0.5F - w, 0.5F - w, 1F, 0.5F + w, 0.5F + w);
return AxisAlignedBB.getBoundingBox(1 - h, 0.5F - w, 0.5F - w, 1F, 0.5F + w, 0.5F + w);
}
}

View file

@ -56,7 +56,7 @@ public class EntityUrbanist extends EntityLivingBase {
public void onUpdate() {
Vec3 look = this.getLook(1.0F).normalize();
Vec3 worldUp = worldObj.getWorldVec3Pool().getVecFromPool(0, 1, 0);
Vec3 worldUp = Vec3.createVectorHelper(0, 1, 0);
Vec3 side = worldUp.crossProduct(look).normalize();
Vec3 forward = side.crossProduct(worldUp).normalize();
@ -158,7 +158,7 @@ public class EntityUrbanist extends EntityLivingBase {
look = this.getLook(1.0F).normalize();
Vec3 aimed = worldObj.getWorldVec3Pool().getVecFromPool(
Vec3 aimed = Vec3.createVectorHelper(
localPos.xCoord + look.xCoord * 200,
localPos.yCoord + look.yCoord * 200,
localPos.zCoord + look.zCoord * 200);

View file

@ -166,7 +166,7 @@ public class BlockEngine extends BlockBuildCraft implements ICustomHighlight {
if (tile instanceof TileEngine) {
return boxes[((TileEngine) tile).orientation.ordinal()];
} else {
return new AxisAlignedBB[]{AxisAlignedBB.getAABBPool().getAABB(0.0, 0.0, 0.0, 1.0, 1.0, 1.0)};
return new AxisAlignedBB[]{AxisAlignedBB.getBoundingBox(0.0, 0.0, 0.0, 1.0, 1.0, 1.0)};
}
}

View file

@ -310,7 +310,7 @@ public class BlockGenericPipe extends BlockBuildCraft {
double eyeHeight = world.isRemote ? player.getEyeHeight() - player.getDefaultEyeHeight() : player.getEyeHeight();
Vec3 lookVec = player.getLookVec();
Vec3 origin = world.getWorldVec3Pool().getVecFromPool(player.posX, player.posY + eyeHeight, player.posZ);
Vec3 origin = Vec3.createVectorHelper(player.posX, player.posY + eyeHeight, player.posZ);
Vec3 direction = origin.addVector(lookVec.xCoord * reachDistance, lookVec.yCoord * reachDistance, lookVec.zCoord * reachDistance);
return doRayTrace(world, x, y, z, origin, direction);
@ -469,7 +469,7 @@ public class BlockGenericPipe extends BlockBuildCraft {
bounds[2][1] = max;
MatrixTranformations.transform(bounds, side);
return AxisAlignedBB.getAABBPool().getAABB(bounds[0][0], bounds[1][0], bounds[2][0], bounds[0][1], bounds[1][1], bounds[2][1]);
return AxisAlignedBB.getBoundingBox(bounds[0][0], bounds[1][0], bounds[2][0], bounds[0][1], bounds[1][1], bounds[2][1]);
}
private AxisAlignedBB getFacadeBoundingBox(ForgeDirection side) {
@ -485,7 +485,7 @@ public class BlockGenericPipe extends BlockBuildCraft {
bounds[2][1] = 1.0F;
MatrixTranformations.transform(bounds, side);
return AxisAlignedBB.getAABBPool().getAABB(bounds[0][0], bounds[1][0], bounds[2][0], bounds[0][1], bounds[1][1], bounds[2][1]);
return AxisAlignedBB.getBoundingBox(bounds[0][0], bounds[1][0], bounds[2][0], bounds[0][1], bounds[1][1], bounds[2][1]);
}
private AxisAlignedBB getPlugBoundingBox(ForgeDirection side) {
@ -501,7 +501,7 @@ public class BlockGenericPipe extends BlockBuildCraft {
bounds[2][1] = 0.75F;
MatrixTranformations.transform(bounds, side);
return AxisAlignedBB.getAABBPool().getAABB(bounds[0][0], bounds[1][0], bounds[2][0], bounds[0][1], bounds[1][1], bounds[2][1]);
return AxisAlignedBB.getBoundingBox(bounds[0][0], bounds[1][0], bounds[2][0], bounds[0][1], bounds[1][1], bounds[2][1]);
}
private AxisAlignedBB getRobotStationBoundingBox(ForgeDirection side) {
@ -517,7 +517,7 @@ public class BlockGenericPipe extends BlockBuildCraft {
bounds[2][1] = 0.75F;
MatrixTranformations.transform(bounds, side);
return AxisAlignedBB.getAABBPool().getAABB(bounds[0][0], bounds[1][0], bounds[2][0], bounds[0][1], bounds[1][1], bounds[2][1]);
return AxisAlignedBB.getBoundingBox(bounds[0][0], bounds[1][0], bounds[2][0], bounds[0][1], bounds[1][1], bounds[2][1]);
}
private AxisAlignedBB getPipeBoundingBox(ForgeDirection side) {
@ -525,7 +525,7 @@ public class BlockGenericPipe extends BlockBuildCraft {
float max = CoreConstants.PIPE_MAX_POS;
if (side == ForgeDirection.UNKNOWN) {
return AxisAlignedBB.getAABBPool().getAABB(min, min, min, max, max, max);
return AxisAlignedBB.getBoundingBox(min, min, min, max, max, max);
}
float[][] bounds = new float[3][2];
@ -540,7 +540,7 @@ public class BlockGenericPipe extends BlockBuildCraft {
bounds[2][1] = max;
MatrixTranformations.transform(bounds, side);
return AxisAlignedBB.getAABBPool().getAABB(bounds[0][0], bounds[1][0], bounds[2][0], bounds[0][1], bounds[1][1], bounds[2][1]);
return AxisAlignedBB.getBoundingBox(bounds[0][0], bounds[1][0], bounds[2][0], bounds[0][1], bounds[1][1], bounds[2][1]);
}
public static void removePipe(Pipe pipe) {

View file

@ -142,7 +142,7 @@ public class PipeItemsObsidian extends Pipe<PipeTransportItems> {
Position min = p1.min(p2);
Position max = p1.max(p2);
return AxisAlignedBB.getAABBPool().getAABB(min.x, min.y, min.z, max.x, max.y, max.z);
return AxisAlignedBB.getBoundingBox(min.x, min.y, min.z, max.x, max.y, max.z);
}
@Override