SPIGOT-4469: Age API for EndGateway

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2018-11-06 18:12:31 +11:00
parent f41299cc66
commit 6f6c96bd33
2 changed files with 17 additions and 1 deletions

View File

@@ -45,6 +45,16 @@ public class CraftEndGateway extends CraftBlockEntityState<TileEntityEndGateway>
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);