Minor changes to make Vertex more useful to other mods

This commit is contained in:
Sollace 2018-09-23 11:08:30 +02:00
parent 8aa4b92dda
commit 8c21872bc3
2 changed files with 5 additions and 1 deletions

View file

@ -25,4 +25,8 @@ public class MathUtil {
return prev + partialTicks * difference;
}
public static float interpolateRadians(float prev, float current, float partialTicks) {
return (float)Math.toRadians(interpolateDegress(prev, current, partialTicks));
}
}

View file

@ -4,7 +4,7 @@ import net.minecraft.client.model.PositionTextureVertex;
public class Vertex extends PositionTextureVertex {
Vertex(float x, float y, float z, int texX, int texY) {
public Vertex(float x, float y, float z, float texX, float texY) {
super(x, y, z, texX, texY);
}