mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 05:47:45 +01:00
#853: Add API for directly setting Display transformation matrices
By: Cerus <github.social@cerus.dev>
This commit is contained in:
parent
101494af90
commit
093f7027d3
@ -5,6 +5,7 @@ import org.bukkit.Color;
|
|||||||
import org.bukkit.util.Transformation;
|
import org.bukkit.util.Transformation;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
import org.joml.Matrix4f;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a display entity which is designed to only have a visual function.
|
* 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);
|
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.
|
* Gets the interpolation duration of this display.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user