mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Update mappings to 20170616
This commit is contained in:
1 parent
2eabbe4b38
commit
a13ce7910d
193 files changed
+795
-802
No files matched your search
@@ -207,9 +207,9 @@ public class RenderResizableCuboid {
|
||||
}
|
||||
|
||||
public static Vec3d withValue(Vec3d vector, Axis axis, double value) {
|
||||
if (axis == Axis.X) return new Vec3d(value, vector.yCoord, vector.zCoord);
|
||||
else if (axis == Axis.Y) return new Vec3d(vector.xCoord, value, vector.zCoord);
|
||||
else if (axis == Axis.Z) return new Vec3d(vector.xCoord, vector.yCoord, value);
|
||||
if (axis == Axis.X) return new Vec3d(value, vector.y, vector.z);
|
||||
else if (axis == Axis.Y) return new Vec3d(vector.x, value, vector.z);
|
||||
else if (axis == Axis.Z) return new Vec3d(vector.x, vector.y, value);
|
||||
else throw new RuntimeException("Was given a null axis! That was probably not intentional, consider this a bug! (Vector = " + vector + ")");
|
||||
}
|
||||
|
||||
@@ -222,7 +222,7 @@ public class RenderResizableCuboid {
|
||||
vertex = withValue(vertex, v, ri.xyz[V_ARRAY]);
|
||||
vertex = withValue(vertex, face.getAxis(), other);
|
||||
|
||||
wr.pos(vertex.xCoord, vertex.yCoord, vertex.zCoord);
|
||||
wr.pos(vertex.x, vertex.y, vertex.z);
|
||||
wr.tex(ri.uv[U_ARRAY], ri.uv[V_ARRAY]);
|
||||
|
||||
if (shadeTypes.isEnabled(EnumShadeType.FACE)) {
|
||||
@@ -244,7 +244,7 @@ public class RenderResizableCuboid {
|
||||
}
|
||||
|
||||
public static BlockPos convertFloor(Vec3d vec) {
|
||||
return new BlockPos(vec.xCoord, vec.yCoord, vec.zCoord);
|
||||
return new BlockPos(vec.x, vec.y, vec.z);
|
||||
}
|
||||
|
||||
public static Vec3d convert(Vec3i vec3i) {
|
||||
@@ -338,7 +338,7 @@ public class RenderResizableCuboid {
|
||||
}
|
||||
|
||||
public static void setWorldRendererRGB(BufferBuilder wr, Vec3d color) {
|
||||
wr.color((float) color.xCoord, (float) color.yCoord, (float) color.zCoord, 1f);
|
||||
wr.color((float) color.x, (float) color.y, (float) color.z, 1f);
|
||||
}
|
||||
|
||||
public static Vec3d vec3(double value) {
|
||||
@@ -346,7 +346,7 @@ public class RenderResizableCuboid {
|
||||
}
|
||||
|
||||
public static Vec3d multiply(Vec3d vec, double multiple) {
|
||||
return new Vec3d(vec.xCoord * multiple, vec.yCoord * multiple, vec.zCoord * multiple);
|
||||
return new Vec3d(vec.x * multiple, vec.y * multiple, vec.z * multiple);
|
||||
}
|
||||
|
||||
public static Vec3d convertMiddle(Vec3i vec3i) {
|
||||
@@ -558,9 +558,9 @@ public class RenderResizableCuboid {
|
||||
}
|
||||
|
||||
public static double getValue(Vec3d vector, Axis axis) {
|
||||
if (axis == Axis.X) return vector.xCoord;
|
||||
else if (axis == Axis.Y) return vector.yCoord;
|
||||
else if (axis == Axis.Z) return vector.zCoord;
|
||||
if (axis == Axis.X) return vector.x;
|
||||
else if (axis == Axis.Y) return vector.y;
|
||||
else if (axis == Axis.Z) return vector.z;
|
||||
else throw new RuntimeException("Was given a null axis! That was probably not intentional, consider this a bug! (Vector = " + vector + ")");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user