From 7882375ea42db4ff042c8eecbfff8d66c9880417 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 16 Mar 2016 21:45:56 -0400 Subject: [PATCH] Add EndGateway#isExactTeleport and EndGateway#setExactTeleport(boolean) By: Matthew --- .../main/java/org/bukkit/block/EndGateway.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 a6eb115c3e..3e77fd717b 100644 --- a/paper-api/src/main/java/org/bukkit/block/EndGateway.java +++ b/paper-api/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); }