From 622a61ce4572a27a31ad62ccc173713a13c3d0b4 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 16 Mar 2016 21:30:03 -0400 Subject: [PATCH] Add EndGateway#getExitLocation and EndGateway#setExitLocation(Location) By: Matthew --- .../java/org/bukkit/block/EndGateway.java | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) 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 ddbe7779e2..a6eb115c3e 100644 --- a/paper-api/src/main/java/org/bukkit/block/EndGateway.java +++ b/paper-api/src/main/java/org/bukkit/block/EndGateway.java @@ -1,3 +1,26 @@ package org.bukkit.block; -public interface EndGateway extends BlockState {} +import org.bukkit.Location; + +/** + * Represents an end gateway. + */ +public interface EndGateway extends BlockState { + + /** + * Gets the location that entities are teleported to when + * entering the gateway portal. + * + * @return the gateway exit location + */ + Location getExitLocation(); + + /** + * Sets the exit location that entities are teleported to when + * they enter the gateway portal. + * + * @param location the new exit location + * @throws IllegalArgumentException for differing worlds + */ + void setExitLocation(Location location); +}