Commits
Matthew Steglinski authored and md_5 committed b00bc638bc5
16 16 | Location getExitLocation(); |
17 17 | |
18 18 | /** |
19 19 | * Sets the exit location that entities are teleported to when |
20 20 | * they enter the gateway portal. |
21 21 | * |
22 22 | * @param location the new exit location |
23 23 | * @throws IllegalArgumentException for differing worlds |
24 24 | */ |
25 25 | void setExitLocation(Location location); |
26 + | |
27 + | /** |
28 + | * Gets whether this gateway will teleport entities directly to |
29 + | * the exit location instead of finding a nearby location. |
30 + | * |
31 + | * @return true if the gateway is teleporting to the exact location |
32 + | */ |
33 + | boolean isExactTeleport(); |
34 + | |
35 + | /** |
36 + | * Sets whether this gateway will teleport entities directly to |
37 + | * the exit location instead of finding a nearby location. |
38 + | * |
39 + | * @param exact whether to teleport to the exact location |
40 + | */ |
41 + | void setExactTeleport(boolean exact); |
26 42 | } |