From 0341e3a095b87a15d956af33bc5b9d6b27ca7b1c Mon Sep 17 00:00:00 2001 From: Doc Date: Mon, 25 Sep 2023 19:20:38 +1000 Subject: [PATCH] SPIGOT-7489: Add TeleportDuration to Display Entity --- src/main/java/org/bukkit/entity/Display.java | 21 ++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/main/java/org/bukkit/entity/Display.java b/src/main/java/org/bukkit/entity/Display.java index bd7dfe80..2b6f0c62 100644 --- a/src/main/java/org/bukkit/entity/Display.java +++ b/src/main/java/org/bukkit/entity/Display.java @@ -48,6 +48,27 @@ public interface Display extends Entity { */ public void setInterpolationDuration(int duration); + /** + * Gets the teleport duration of this display. + * + * + * @return teleport duration + */ + public int getTeleportDuration(); + + /** + * Sets the teleport duration of this display. + * + * @param duration new duration + * @throws IllegalArgumentException if duration is not between 0 and 59 + * @see #getTeleportDuration() + */ + public void setTeleportDuration(int duration); + /** * Gets the view distance/range of this display. *