public interface PortalCooldown extends EntityComponent
| Modifier and Type | Method and Description |
|---|---|
default boolean |
canUsePortal() |
int |
getPortalCooldown()
Gets the period of time (in ticks) before this entity can use a portal.
|
void |
setPortalCooldown(int ticks)
Sets the period of time (in ticks) before this entity can use a portal.
|
default boolean canUsePortal()
@Nonnegative int getPortalCooldown()
void setPortalCooldown(@Nonnegative int ticks)
ticks - portal cooldown ticksCopyright © 2017–2019 NukkitX. All rights reserved.