#1185: Add API for directly setting Display transformation matrices
This commit is contained in:
parent
a7cfc778fd
commit
bcc85ef670
@ -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()));
|
||||
}
|
||||
|
||||
@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
|
||||
public int getInterpolationDuration() {
|
||||
return getHandle().getInterpolationDuration();
|
||||
|
Loading…
x
Reference in New Issue
Block a user