13
0
geforkt von Mirrors/Paper

SPIGOT-7489: Add TeleportDuration to Display Entity

By: Doc <nachito94@msn.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2023-09-25 19:20:38 +10:00
Ursprung 156224dbfa
Commit aceb644344

Datei anzeigen

@ -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.
*