From 450225fe17a930d7bb0de2d646c4a892d5bdcd7e Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 1 Oct 2016 12:26:15 +1000 Subject: SPIGOT-2705: Portal cooldown getter / setter. --- src/main/java/org/bukkit/entity/Entity.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/main') diff --git a/src/main/java/org/bukkit/entity/Entity.java b/src/main/java/org/bukkit/entity/Entity.java index 5b70f94b..779da358 100644 --- a/src/main/java/org/bukkit/entity/Entity.java +++ b/src/main/java/org/bukkit/entity/Entity.java @@ -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); } -- cgit v1.2.3