diff options
author | Matthew <stteg@hotmail.com> | 2016-03-16 21:30:03 -0400 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-03-18 14:28:51 +1100 |
commit | 6c8bcc2fe4ab3be90bc7ac7569d79217f66403d7 (patch) | |
tree | 3176b787bff5314ea31b1896983754876ca23d90 /src | |
parent | bab290e0ed0eecf3558a40353018b039bb784748 (diff) | |
download | bukkit-6c8bcc2fe4ab3be90bc7ac7569d79217f66403d7.tar bukkit-6c8bcc2fe4ab3be90bc7ac7569d79217f66403d7.tar.gz bukkit-6c8bcc2fe4ab3be90bc7ac7569d79217f66403d7.tar.lz bukkit-6c8bcc2fe4ab3be90bc7ac7569d79217f66403d7.tar.xz bukkit-6c8bcc2fe4ab3be90bc7ac7569d79217f66403d7.zip |
Add EndGateway#getExitLocation and EndGateway#setExitLocation(Location)
Diffstat (limited to 'src')
-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); +} |