SPIGOT-4469: Age API for EndGateway

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2018-11-06 18:12:25 +11:00
parent 60d1f54a7f
commit 905e0f7cac

View file

@ -43,4 +43,24 @@ public interface EndGateway extends BlockState {
* @param exact whether to teleport to the exact location
*/
void setExactTeleport(boolean exact);
/**
* Gets the age in ticks of the gateway.
* <br>
* If the age is less than 200 ticks a magenta beam will be emitted, whilst
* if it is a multiple of 2400 ticks a purple beam will be emitted.
*
* @return age in ticks
*/
long getAge();
/**
* Sets the age in ticks of the gateway.
* <br>
* If the age is less than 200 ticks a magenta beam will be emitted, whilst
* if it is a multiple of 2400 ticks a purple beam will be emitted.
*
* @param age new age in ticks
*/
void setAge(long age);
}