diff options
author | md_5 <git@md-5.net> | 2018-11-06 18:12:25 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-11-06 18:12:25 +1100 |
commit | 1627782b1c341cc9928c13bc7729fd53e6fee449 (patch) | |
tree | ccbc71b39fcde8a02ae8912bc78ff5853efa7f92 /src | |
parent | 6924311be9ef8df636449a563a47ee46dfa1b71a (diff) | |
download | bukkit-1627782b1c341cc9928c13bc7729fd53e6fee449.tar bukkit-1627782b1c341cc9928c13bc7729fd53e6fee449.tar.gz bukkit-1627782b1c341cc9928c13bc7729fd53e6fee449.tar.lz bukkit-1627782b1c341cc9928c13bc7729fd53e6fee449.tar.xz bukkit-1627782b1c341cc9928c13bc7729fd53e6fee449.zip |
SPIGOT-4469: Age API for EndGateway
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/block/EndGateway.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/block/EndGateway.java b/src/main/java/org/bukkit/block/EndGateway.java index a1a6b3b0..4849436e 100644 --- a/src/main/java/org/bukkit/block/EndGateway.java +++ b/src/main/java/org/bukkit/block/EndGateway.java @@ -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); } |