mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
SPIGOT-2705: Portal cooldown getter / setter.
This commit is contained in:
parent
9d85e3f475
commit
450225fe17
1 changed files with 14 additions and 0 deletions
|
@ -403,4 +403,18 @@ public interface Entity extends Metadatable, CommandSender {
|
|||
* @param gravity whether gravity should apply
|
||||
*/
|
||||
void setGravity(boolean gravity);
|
||||
|
||||
/**
|
||||
* Gets the period of time (in ticks) before this entity can use a portal.
|
||||
*
|
||||
* @return portal cooldown ticks
|
||||
*/
|
||||
int getPortalCooldown();
|
||||
|
||||
/**
|
||||
* Sets the period of time (in ticks) before this entity can use a portal.
|
||||
*
|
||||
* @param cooldown portal cooldown ticks
|
||||
*/
|
||||
void setPortalCooldown(int cooldown);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue