mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 17:57:34 +01:00
Add EndGateway#isExactTeleport and EndGateway#setExactTeleport(boolean)
By: Matthew <stteg@hotmail.com>
This commit is contained in:
parent
622a61ce45
commit
7882375ea4
@ -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…
Reference in New Issue
Block a user