diff options
author | md_5 <git@md-5.net> | 2018-11-06 18:12:31 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-11-07 11:15:24 +1100 |
commit | ca22de36ab1164f67e5b36c994c62eb0411db056 (patch) | |
tree | 379aee0bea10ba73aa12ad6ef144ea463b77e50a /src | |
parent | de547749ec4c80d540a9992f67a8937fe53359f2 (diff) | |
download | craftbukkit-ca22de36ab1164f67e5b36c994c62eb0411db056.tar craftbukkit-ca22de36ab1164f67e5b36c994c62eb0411db056.tar.gz craftbukkit-ca22de36ab1164f67e5b36c994c62eb0411db056.tar.lz craftbukkit-ca22de36ab1164f67e5b36c994c62eb0411db056.tar.xz craftbukkit-ca22de36ab1164f67e5b36c994c62eb0411db056.zip |
SPIGOT-4469: Age API for EndGateway
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/block/CraftEndGateway.java | 10 |
1 files changed, 10 insertions, 0 deletions
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 @@ -46,6 +46,16 @@ public class CraftEndGateway extends CraftBlockEntityState<TileEntityEndGateway> } @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); |