#853: Add API for directly setting Display transformation matrices

By: Cerus <github.social@cerus.dev>
This commit is contained in:
Bukkit/Spigot 2023-05-11 06:48:36 +10:00
parent 101494af90
commit 093f7027d3

View File

@ -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.
*