diff --git a/paper-api/src/main/java/org/bukkit/block/EndGateway.java b/paper-api/src/main/java/org/bukkit/block/EndGateway.java index a1a6b3b010..4849436eca 100644 --- a/paper-api/src/main/java/org/bukkit/block/EndGateway.java +++ b/paper-api/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); }