mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-21 05:44:17 +00:00
Add EndGateway#isExactTeleport and EndGateway#setExactTeleport(boolean)
This commit is contained in:
parent
6c8bcc2fe4
commit
b00bc638bc
1 changed files with 16 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue