mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 19:15:32 +00:00
Update to Official classnames Patchwork Make the game compile and run Merge in the new HUD overlay API Merge in the new render properties API PEEL Use Gradle 7.2 snapshot to fix eclipse integration bug in 7.1, Would use 7.0 but FG needs 7.1 for some reason. New FML installer Update to 1.17.1 Co-authored-by: LexManos <[email protected]> Co-authored-by: SizableShrimp <[email protected]> Co-authored-by: cpw <[email protected]> Co-authored-by: Curle <[email protected]> Co-authored-by: Unnoen <[email protected]> Co-authored-by: covers1624 <[email protected]> Co-authored-by: DaemonUmbra <[email protected]> Co-authored-by: gigaherz <[email protected]> Signed-off-by: SizableShrimp <[email protected]>
44 lines
1.1 KiB
Diff
44 lines
1.1 KiB
Diff
--- a/com/mojang/math/Matrix4f.java
|
|
+++ b/com/mojang/math/Matrix4f.java
|
|
@@ -559,4 +_,40 @@
|
|
matrix4f.f_27614_ = p_27656_;
|
|
return matrix4f;
|
|
}
|
|
+
|
|
+ // Forge start
|
|
+ public Matrix4f(float[] values) {
|
|
+ f_27603_ = values[0];
|
|
+ f_27604_ = values[1];
|
|
+ f_27605_ = values[2];
|
|
+ f_27606_ = values[3];
|
|
+ f_27607_ = values[4];
|
|
+ f_27608_ = values[5];
|
|
+ f_27609_ = values[6];
|
|
+ f_27610_ = values[7];
|
|
+ f_27611_ = values[8];
|
|
+ f_27612_ = values[9];
|
|
+ f_27613_ = values[10];
|
|
+ f_27614_ = values[11];
|
|
+ f_27615_ = values[12];
|
|
+ f_27616_ = values[13];
|
|
+ f_27617_ = values[14];
|
|
+ f_27618_ = values[15];
|
|
+ }
|
|
+
|
|
+ public void multiplyBackward(Matrix4f other) {
|
|
+ Matrix4f copy = other.m_27658_();
|
|
+ copy.m_27644_(this);
|
|
+ this.m_162210_(copy);
|
|
+ }
|
|
+
|
|
+ public void setTranslation(float x, float y, float z) {
|
|
+ this.f_27603_ = 1.0F;
|
|
+ this.f_27608_ = 1.0F;
|
|
+ this.f_27613_ = 1.0F;
|
|
+ this.f_27618_ = 1.0F;
|
|
+ this.f_27606_ = x;
|
|
+ this.f_27610_ = y;
|
|
+ this.f_27614_ = z;
|
|
+ }
|
|
}
|