API compiles
This commit is contained in:
@@ -19,12 +19,12 @@
|
||||
package appeng.thirdparty.codechicken.lib.model;
|
||||
|
||||
import net.minecraft.client.renderer.Vector3f;
|
||||
import net.minecraft.client.renderer.model.BakedQuad;
|
||||
import net.minecraft.client.render.model.BakedQuad;
|
||||
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
|
||||
import net.minecraft.client.renderer.vertex.DefaultVertexFormats;
|
||||
import net.minecraft.client.renderer.vertex.VertexFormat;
|
||||
import net.minecraft.util.math.Box;
|
||||
import net.minecraft.util.math.Direction;
|
||||
import net.minecraft.util.math.AxisAlignedBB;
|
||||
import net.minecraft.util.math.MathHelper;
|
||||
import net.minecraftforge.client.model.pipeline.IVertexConsumer;
|
||||
import net.minecraftforge.client.model.pipeline.IVertexProducer;
|
||||
@@ -165,7 +165,7 @@ public class Quad implements IVertexProducer, ISmartVertexConsumer {
|
||||
*
|
||||
* @param bb The box.
|
||||
*/
|
||||
public void clamp(AxisAlignedBB bb) {
|
||||
public void clamp(Box bb) {
|
||||
for (Vertex vertex : this.vertices) {
|
||||
float[] vec = vertex.vec;
|
||||
vec[0] = (float) MathHelper.clamp(vec[0], bb.minX, bb.maxX);
|
||||
|
||||
Vendored
+4
-4
@@ -18,7 +18,7 @@
|
||||
|
||||
package appeng.thirdparty.codechicken.lib.model.pipeline.transformers;
|
||||
|
||||
import net.minecraft.util.math.AxisAlignedBB;
|
||||
import net.minecraft.util.math.Box;
|
||||
import net.minecraftforge.client.model.pipeline.IVertexConsumer;
|
||||
|
||||
import appeng.thirdparty.codechicken.lib.model.Quad.Vertex;
|
||||
@@ -36,18 +36,18 @@ public class QuadClamper extends QuadTransformer {
|
||||
|
||||
public static IPipelineElementFactory<QuadClamper> FACTORY = QuadClamper::new;
|
||||
|
||||
private AxisAlignedBB clampBounds;
|
||||
private Box clampBounds;
|
||||
|
||||
QuadClamper() {
|
||||
super();
|
||||
}
|
||||
|
||||
public QuadClamper(IVertexConsumer parent, AxisAlignedBB bounds) {
|
||||
public QuadClamper(IVertexConsumer parent, Box bounds) {
|
||||
super(parent);
|
||||
this.clampBounds = bounds;
|
||||
}
|
||||
|
||||
public void setClampBounds(AxisAlignedBB bounds) {
|
||||
public void setClampBounds(Box bounds) {
|
||||
this.clampBounds = bounds;
|
||||
}
|
||||
|
||||
|
||||
Vendored
+6
-6
@@ -23,7 +23,7 @@ import static net.minecraft.util.math.Direction.AxisDirection.POSITIVE;
|
||||
|
||||
import net.minecraft.util.math.Direction;
|
||||
import net.minecraft.util.math.Direction.AxisDirection;
|
||||
import net.minecraft.util.math.AxisAlignedBB;
|
||||
import net.minecraft.util.math.Box;
|
||||
import net.minecraft.util.math.Vec3i;
|
||||
|
||||
import appeng.thirdparty.codechicken.lib.model.Quad.Vertex;
|
||||
@@ -61,7 +61,7 @@ public class QuadCornerKicker extends QuadTransformer {
|
||||
|
||||
private int mySide;
|
||||
private int facadeMask;
|
||||
private AxisAlignedBB box;
|
||||
private Box box;
|
||||
private double thickness;
|
||||
|
||||
QuadCornerKicker() {
|
||||
@@ -93,7 +93,7 @@ public class QuadCornerKicker extends QuadTransformer {
|
||||
*
|
||||
* @param box The BoundingBox.
|
||||
*/
|
||||
public void setBox(AxisAlignedBB box) {
|
||||
public void setBox(Box box) {
|
||||
this.box = box;
|
||||
}
|
||||
|
||||
@@ -175,15 +175,15 @@ public class QuadCornerKicker extends QuadTransformer {
|
||||
return values()[sideMask[sideA] | sideMask[sideB] | sideMask[sideC]];
|
||||
}
|
||||
|
||||
public float pX(AxisAlignedBB box) {
|
||||
public float pX(Box box) {
|
||||
return (float) (this.xAxis == NEGATIVE ? box.minX : box.maxX);
|
||||
}
|
||||
|
||||
public float pY(AxisAlignedBB box) {
|
||||
public float pY(Box box) {
|
||||
return (float) (this.yAxis == NEGATIVE ? box.minY : box.maxY);
|
||||
}
|
||||
|
||||
public float pZ(AxisAlignedBB box) {
|
||||
public float pZ(Box box) {
|
||||
return (float) (this.zAxis == NEGATIVE ? box.minZ : box.maxZ);
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+4
-4
@@ -21,7 +21,7 @@ package appeng.thirdparty.codechicken.lib.model.pipeline.transformers;
|
||||
import static net.minecraft.util.math.Direction.AxisDirection.POSITIVE;
|
||||
|
||||
import net.minecraft.util.math.Direction.AxisDirection;
|
||||
import net.minecraft.util.math.AxisAlignedBB;
|
||||
import net.minecraft.util.math.Box;
|
||||
import net.minecraftforge.client.model.pipeline.IVertexConsumer;
|
||||
|
||||
import appeng.thirdparty.codechicken.lib.model.Quad.Vertex;
|
||||
@@ -38,14 +38,14 @@ public class QuadFaceStripper extends QuadTransformer {
|
||||
|
||||
public static final IPipelineElementFactory<QuadFaceStripper> FACTORY = QuadFaceStripper::new;
|
||||
|
||||
private AxisAlignedBB bounds;
|
||||
private Box bounds;
|
||||
private int mask;
|
||||
|
||||
QuadFaceStripper() {
|
||||
super();
|
||||
}
|
||||
|
||||
public QuadFaceStripper(IVertexConsumer parent, AxisAlignedBB bounds, int mask) {
|
||||
public QuadFaceStripper(IVertexConsumer parent, Box bounds, int mask) {
|
||||
super(parent);
|
||||
this.bounds = bounds;
|
||||
this.mask = mask;
|
||||
@@ -57,7 +57,7 @@ public class QuadFaceStripper extends QuadTransformer {
|
||||
*
|
||||
* @param bounds The bounds.
|
||||
*/
|
||||
public void setBounds(AxisAlignedBB bounds) {
|
||||
public void setBounds(Box bounds) {
|
||||
this.bounds = bounds;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user