mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
#1185: Add API for directly setting Display transformation matrices
This commit is contained in:
parent
a7cfc778fd
commit
bcc85ef670
1 changed files with 7 additions and 0 deletions
|
@ -42,6 +42,13 @@ public class CraftDisplay extends CraftEntity implements Display {
|
||||||
getHandle().setTransformation(new com.mojang.math.Transformation(transformation.getTranslation(), transformation.getLeftRotation(), transformation.getScale(), transformation.getRightRotation()));
|
getHandle().setTransformation(new com.mojang.math.Transformation(transformation.getTranslation(), transformation.getLeftRotation(), transformation.getScale(), transformation.getRightRotation()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setTransformationMatrix(org.joml.Matrix4f transformationMatrix) {
|
||||||
|
Preconditions.checkArgument(transformationMatrix != null, "Transformation matrix cannot be null");
|
||||||
|
|
||||||
|
getHandle().setTransformation(new com.mojang.math.Transformation(transformationMatrix));
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getInterpolationDuration() {
|
public int getInterpolationDuration() {
|
||||||
return getHandle().getInterpolationDuration();
|
return getHandle().getInterpolationDuration();
|
||||||
|
|
Loading…
Add table
Reference in a new issue