geforkt von Mirrors/Paper
SPIGOT-2705: Portal cooldown getter / setter.
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
fef3dbb95c
Commit
5945e37165
@ -403,4 +403,18 @@ public interface Entity extends Metadatable, CommandSender {
|
|||||||
* @param gravity whether gravity should apply
|
* @param gravity whether gravity should apply
|
||||||
*/
|
*/
|
||||||
void setGravity(boolean gravity);
|
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);
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren