mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-21 12:42:26 +00:00
Created a CreativeModeTabEvent to register creative mode tabs and populate entries per tab Moved datapack registries to DataPackRegistryEvent.NewRegistry event instead of tying them to ForgeRegistry Made it easier for mods to datagen datapack builtin entries with DatapackBuiltinEntriesProvider Provided access to lookupProvider for datagen Updated dependencies to match versions used by vanilla and update JarJar to 0.3.18 Added a test mod for the new CreativeModeTabEvent Throws better error message for Forge registries in tag datagen Deleted ForgeRegistryTagsProvider Updated ClientChatReceivedEvent and ServerChatEvent for Mojang changes Added patches for both sign related methods in ModelLayers Changed RegisterShadersEvent to use ResourceProvider Migrated old Mojang math types to JOML Co-authored-by: Marc Hermans <[email protected]> Co-authored-by: LexManos <[email protected]> Co-authored-by: sciwhiz12 <[email protected]> Co-authored-by: coehlrich <[email protected]>
32 lines
1009 B
Diff
32 lines
1009 B
Diff
--- a/com/mojang/math/Transformation.java
|
|
+++ b/com/mojang/math/Transformation.java
|
|
@@ -12,7 +_,7 @@
|
|
import org.joml.Vector3f;
|
|
import org.joml.Vector3fc;
|
|
|
|
-public final class Transformation {
|
|
+public final class Transformation implements net.minecraftforge.client.extensions.IForgeTransformation {
|
|
private final Matrix4f f_121078_;
|
|
private boolean f_121079_;
|
|
@Nullable
|
|
@@ -139,6 +_,19 @@
|
|
public int hashCode() {
|
|
return Objects.hash(this.f_121078_);
|
|
}
|
|
+
|
|
+ private Matrix3f normalTransform = null;
|
|
+ public Matrix3f getNormalMatrix() {
|
|
+ checkNormalTransform();
|
|
+ return normalTransform;
|
|
+ }
|
|
+ private void checkNormalTransform() {
|
|
+ if (normalTransform == null) {
|
|
+ normalTransform = new Matrix3f(f_121078_);
|
|
+ normalTransform.invert();
|
|
+ normalTransform.transpose();
|
|
+ }
|
|
+ }
|
|
|
|
public Transformation m_175937_(Transformation p_175938_, float p_175939_) {
|
|
Vector3f vector3f = this.m_252829_();
|