#853: Add API for directly setting Display transformation matrices

This commit is contained in:
Cerus 2023-05-11 06:48:36 +10:00 committed by md_5
parent ecfa559ae8
commit 201399fb77
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

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