diff options
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/block/EndGateway.java | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/block/EndGateway.java b/src/main/java/org/bukkit/block/EndGateway.java index ddbe7779..a6eb115c 100644 --- a/src/main/java/org/bukkit/block/EndGateway.java +++ b/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); +} |