diff --git a/src/entity/effect/Effect.php b/src/entity/effect/Effect.php index 6e7192e2e..fe2f80bd1 100644 --- a/src/entity/effect/Effect.php +++ b/src/entity/effect/Effect.php @@ -90,7 +90,7 @@ class Effect{ } /** - * Returns the default duration this effect will apply for if a duration is not specified. + * Returns the default duration (in ticks) this effect will apply for if a duration is not specified. * @return int */ public function getDefaultDuration() : int{ diff --git a/src/entity/effect/EffectInstance.php b/src/entity/effect/EffectInstance.php index ee7665d38..1af2e5b6e 100644 --- a/src/entity/effect/EffectInstance.php +++ b/src/entity/effect/EffectInstance.php @@ -75,6 +75,8 @@ class EffectInstance{ } /** + * Returns the number of ticks remaining until the effect expires. + * * @return int */ public function getDuration() : int{ @@ -82,6 +84,8 @@ class EffectInstance{ } /** + * Sets the number of ticks remaining until the effect expires. + * * @param int $duration * * @throws \InvalidArgumentException