From 1627782b1c341cc9928c13bc7729fd53e6fee449 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 6 Nov 2018 18:12:25 +1100 Subject: SPIGOT-4469: Age API for EndGateway --- src/main/java/org/bukkit/block/EndGateway.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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. + *
+ * 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. + *
+ * 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); } -- cgit v1.2.3