mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Merge commit 'a9081979071ec8ad56d14474cfbc48b5c60fb440'
This commit is contained in:
commit
79aa4959b8
@ -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{
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user