From 201399fb778ac28827f6e58250579aa767543b25 Mon Sep 17 00:00:00 2001 From: Cerus Date: Thu, 11 May 2023 06:48:36 +1000 Subject: [PATCH] #853: Add API for directly setting Display transformation matrices --- src/main/java/org/bukkit/entity/Display.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/org/bukkit/entity/Display.java b/src/main/java/org/bukkit/entity/Display.java index bfdda8c0..bd7dfe80 100644 --- a/src/main/java/org/bukkit/entity/Display.java +++ b/src/main/java/org/bukkit/entity/Display.java @@ -5,6 +5,7 @@ import org.bukkit.Color; import org.bukkit.util.Transformation; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; +import org.joml.Matrix4f; /** * Represents a display entity which is designed to only have a visual function. @@ -26,6 +27,13 @@ public interface Display extends Entity { */ public void setTransformation(@NotNull Transformation transformation); + /** + * Sets the raw transformation matrix applied to this display + * + * @param transformationMatrix the transformation matrix + */ + public void setTransformationMatrix(@NotNull Matrix4f transformationMatrix); + /** * Gets the interpolation duration of this display. *