mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +00:00
Extracted an EffectManager unit from Living
This commit is contained in:
@ -154,6 +154,17 @@ This version features substantial changes to the network system, improving coher
|
||||
- `Entity->entityBaseTick()` is now `protected`.
|
||||
- `Entity->move()` is now `protected`.
|
||||
- `Living->knockBack()` now accepts `float, float, float` (the first two parameters have been removed).
|
||||
- `Living->getEffects()` now returns `EffectManager` instead of `Effect[]`.
|
||||
- The following classes have been added:
|
||||
- `effect\EffectManager`: contains effect-management functionality extracted from `Living`
|
||||
- The following API methods have been moved / renamed:
|
||||
- `Living->removeAllEffects()` -> `EffectManager->clear()`
|
||||
- `Living->removeEffect()` -> `EffectManager->remove()`
|
||||
- `Living->addEffect()` -> `EffectManager->add()`
|
||||
- `Living->getEffect()` -> `EffectManager->get()`
|
||||
- `Living->hasEffect()` -> `EffectManager->has()`
|
||||
- `Living->hasEffects()` -> `EffectManager->hasEffects()`
|
||||
- `Living->getEffects()` -> `EffectManager->all()`
|
||||
- The following classes have been removed:
|
||||
- `Creature`
|
||||
- `Damageable`
|
||||
|
Reference in New Issue
Block a user