mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +01:00
SPIGOT-4469: Age API for EndGateway
By: md_5 <git@md-5.net>
This commit is contained in:
parent
60d1f54a7f
commit
905e0f7cac
1 changed files with 20 additions and 0 deletions
|
@ -43,4 +43,24 @@ public interface EndGateway extends BlockState {
|
||||||
* @param exact whether to teleport to the exact location
|
* @param exact whether to teleport to the exact location
|
||||||
*/
|
*/
|
||||||
void setExactTeleport(boolean exact);
|
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue