SPIGOT-7489: Add TeleportDuration to Display Entity

This commit is contained in:
Doc 2023-09-25 19:20:38 +10:00 committed by md_5
parent bcd8d2aaf2
commit 0341e3a095
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

View file

@ -48,6 +48,27 @@ public interface Display extends Entity {
*/
public void setInterpolationDuration(int duration);
/**
* Gets the teleport duration of this display.
* <ul>
* <li>0 means that updates are applied immediately.</li>
* <li>1 means that the display entity will move from current position to the updated one over one tick.</li>
* <li>Higher values spread the movement over multiple ticks.</li>
* </ul>
*
* @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.
*