From aceb644344a0dab38cf1dceb57553746d0f8b19d Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Mon, 25 Sep 2023 19:20:38 +1000 Subject: [PATCH] SPIGOT-7489: Add TeleportDuration to Display Entity By: Doc --- .../main/java/org/bukkit/entity/Display.java | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/Display.java b/paper-api/src/main/java/org/bukkit/entity/Display.java index bd7dfe80bf..2b6f0c627a 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Display.java +++ b/paper-api/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. *