summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorMatthew <stteg@hotmail.com>2016-03-16 21:45:56 -0400
committermd_5 <git@md-5.net>2016-03-18 14:28:51 +1100
commitb00bc638bc54d983c85ce47a942a6eec2b3c0afb (patch)
tree11c02d98f1c0b9b5ecdbab9471e08cf8ccce262b /src/main
parent6c8bcc2fe4ab3be90bc7ac7569d79217f66403d7 (diff)
downloadbukkit-b00bc638bc54d983c85ce47a942a6eec2b3c0afb.tar
bukkit-b00bc638bc54d983c85ce47a942a6eec2b3c0afb.tar.gz
bukkit-b00bc638bc54d983c85ce47a942a6eec2b3c0afb.tar.lz
bukkit-b00bc638bc54d983c85ce47a942a6eec2b3c0afb.tar.xz
bukkit-b00bc638bc54d983c85ce47a942a6eec2b3c0afb.zip
Add EndGateway#isExactTeleport and EndGateway#setExactTeleport(boolean)
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/bukkit/block/EndGateway.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/block/EndGateway.java b/src/main/java/org/bukkit/block/EndGateway.java
index a6eb115c..3e77fd71 100644
--- a/src/main/java/org/bukkit/block/EndGateway.java
+++ b/src/main/java/org/bukkit/block/EndGateway.java
@@ -23,4 +23,20 @@ public interface EndGateway extends BlockState {
* @throws IllegalArgumentException for differing worlds
*/
void setExitLocation(Location location);
+
+ /**
+ * Gets whether this gateway will teleport entities directly to
+ * the exit location instead of finding a nearby location.
+ *
+ * @return true if the gateway is teleporting to the exact location
+ */
+ boolean isExactTeleport();
+
+ /**
+ * Sets whether this gateway will teleport entities directly to
+ * the exit location instead of finding a nearby location.
+ *
+ * @param exact whether to teleport to the exact location
+ */
+ void setExactTeleport(boolean exact);
}