Commits
md_5 authored 450225fe17a
396 396 | * @return whether gravity applies |
397 397 | */ |
398 398 | boolean hasGravity(); |
399 399 | |
400 400 | /** |
401 401 | * Sets whether gravity applies to this entity. |
402 402 | * |
403 403 | * @param gravity whether gravity should apply |
404 404 | */ |
405 405 | void setGravity(boolean gravity); |
406 + | |
407 + | /** |
408 + | * Gets the period of time (in ticks) before this entity can use a portal. |
409 + | * |
410 + | * @return portal cooldown ticks |
411 + | */ |
412 + | int getPortalCooldown(); |
413 + | |
414 + | /** |
415 + | * Sets the period of time (in ticks) before this entity can use a portal. |
416 + | * |
417 + | * @param cooldown portal cooldown ticks |
418 + | */ |
419 + | void setPortalCooldown(int cooldown); |
406 420 | } |