aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJake Potrebic <[email protected]>2024-12-23 15:46:17 -0800
committerGitHub <[email protected]>2024-12-23 15:46:17 -0800
commitd0d0efee028f9c26bacbb14b8c8422adb257baa5 (patch)
treeace224991687ad1ca4efd670b47686d0e1cb38d5
parentaa2c52baac16acfd3fea91be648587819042554b (diff)
downloadPaper-d0d0efee028f9c26bacbb14b8c8422adb257baa5.tar.gz
Paper-d0d0efee028f9c26bacbb14b8c8422adb257baa5.zip
Partially revert 083c083188 for Transformation (#11798)
* Partially revert 083c083188 for Transformation The type is used in a way that requires mutability * keep copy in ctors
-rw-r--r--paper-api/src/main/java/org/bukkit/util/Transformation.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/paper-api/src/main/java/org/bukkit/util/Transformation.java b/paper-api/src/main/java/org/bukkit/util/Transformation.java
index a23ed4193b..9b7e3ae77e 100644
--- a/paper-api/src/main/java/org/bukkit/util/Transformation.java
+++ b/paper-api/src/main/java/org/bukkit/util/Transformation.java
@@ -52,7 +52,7 @@ public class Transformation {
*/
@NotNull
public Vector3f getTranslation() {
- return new Vector3f(this.translation);
+ return this.translation;
}
/**
@@ -62,7 +62,7 @@ public class Transformation {
*/
@NotNull
public Quaternionf getLeftRotation() {
- return new Quaternionf(this.leftRotation);
+ return this.leftRotation;
}
/**
@@ -72,7 +72,7 @@ public class Transformation {
*/
@NotNull
public Vector3f getScale() {
- return new Vector3f(this.scale);
+ return this.scale;
}
/**
@@ -82,7 +82,7 @@ public class Transformation {
*/
@NotNull
public Quaternionf getRightRotation() {
- return new Quaternionf(this.rightRotation);
+ return this.rightRotation;
}
@Override