mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-21 05:44:17 +00:00
Add EndGateway#getExitLocation and EndGateway#setExitLocation(Location)
This commit is contained in:
parent
bab290e0ed
commit
6c8bcc2fe4
1 changed files with 24 additions and 1 deletions
|
@ -1,3 +1,26 @@
|
||||||
package org.bukkit.block;
|
package org.bukkit.block;
|
||||||
|
|
||||||
public interface EndGateway extends BlockState {}
|
import org.bukkit.Location;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents an end gateway.
|
||||||
|
*/
|
||||||
|
public interface EndGateway extends BlockState {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the location that entities are teleported to when
|
||||||
|
* entering the gateway portal.
|
||||||
|
*
|
||||||
|
* @return the gateway exit location
|
||||||
|
*/
|
||||||
|
Location getExitLocation();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the exit location that entities are teleported to when
|
||||||
|
* they enter the gateway portal.
|
||||||
|
*
|
||||||
|
* @param location the new exit location
|
||||||
|
* @throws IllegalArgumentException for differing worlds
|
||||||
|
*/
|
||||||
|
void setExitLocation(Location location);
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue