Commits

Cerus authored and md_5 committed 201399fb778
#853: Add API for directly setting Display transformation matrices
No tags

src/main/java/org/bukkit/entity/Display.java

Modified
1 1 package org.bukkit.entity;
2 2
3 3 import com.google.common.base.Preconditions;
4 4 import org.bukkit.Color;
5 5 import org.bukkit.util.Transformation;
6 6 import org.jetbrains.annotations.NotNull;
7 7 import org.jetbrains.annotations.Nullable;
8 +import org.joml.Matrix4f;
8 9
9 10 /**
10 11 * Represents a display entity which is designed to only have a visual function.
11 12 */
12 13 public interface Display extends Entity {
13 14
14 15 /**
15 16 * Gets the transformation applied to this display.
16 17 *
17 18 * @return the transformation
18 19 */
19 20 @NotNull
20 21 public Transformation getTransformation();
21 22
22 23 /**
23 24 * Sets the transformation applied to this display
24 25 *
25 26 * @param transformation the new transformation
26 27 */
27 28 public void setTransformation(@NotNull Transformation transformation);
28 29
30 + /**
31 + * Sets the raw transformation matrix applied to this display
32 + *
33 + * @param transformationMatrix the transformation matrix
34 + */
35 + public void setTransformationMatrix(@NotNull Matrix4f transformationMatrix);
36 +
29 37 /**
30 38 * Gets the interpolation duration of this display.
31 39 *
32 40 * @return interpolation duration
33 41 */
34 42 public int getInterpolationDuration();
35 43
36 44 /**
37 45 * Sets the interpolation duration of this display.
38 46 *

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut