From ca22de36ab1164f67e5b36c994c62eb0411db056 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 6 Nov 2018 18:12:31 +1100 Subject: SPIGOT-4469: Age API for EndGateway --- .../java/org/bukkit/craftbukkit/block/CraftEndGateway.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftEndGateway.java b/src/main/java/org/bukkit/craftbukkit/block/CraftEndGateway.java index 8ca614bd..5fbc336b 100644 --- a/src/main/java/org/bukkit/craftbukkit/block/CraftEndGateway.java +++ b/src/main/java/org/bukkit/craftbukkit/block/CraftEndGateway.java @@ -45,6 +45,16 @@ public class CraftEndGateway extends CraftBlockEntityState this.getSnapshot().exactTeleport = exact; } + @Override + public long getAge() { + return this.getSnapshot().e; + } + + @Override + public void setAge(long age) { + this.getSnapshot().e = age; + } + @Override public void applyTo(TileEntityEndGateway endGateway) { super.applyTo(endGateway); -- cgit v1.2.3