mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-05 15:11:28 +01:00
SPIGOT-7489: Add TeleportDuration to Display Entity
By: Doc <nachito94@msn.com>
This commit is contained in:
parent
156224dbfa
commit
aceb644344
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user