mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-13 11:15:57 -07:00
SPIGOT-7489: Add TeleportDuration to Display Entity
By: Doc <nachito94@msn.com>
This commit is contained in:
@@ -48,6 +48,27 @@ public interface Display extends Entity {
|
|||||||
*/
|
*/
|
||||||
public void setInterpolationDuration(int duration);
|
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.
|
* Gets the view distance/range of this display.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user