mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
changelog: VanillaEffects -> VanillaEnchantments (#3884) [ci skip]
This commit is contained in:
parent
587a4c0095
commit
ddc0f137e7
@ -501,7 +501,7 @@ This version features substantial changes to the network system, improving coher
|
|||||||
- It's planned to remove runtime NBT from items completely, but this currently presents unresolved backwards-compatibility problems.
|
- It's planned to remove runtime NBT from items completely, but this currently presents unresolved backwards-compatibility problems.
|
||||||
|
|
||||||
#### Enchantment
|
#### Enchantment
|
||||||
- `VanillaEffects` class has been added. This exposes all vanilla enchantment types as static methods, replacing the old `Enchantment::get()` nastiness.
|
- `VanillaEnchantments` class has been added. This exposes all vanilla enchantment types as static methods, replacing the old `Enchantment::get()` nastiness.
|
||||||
- Example: `Enchantment::get(Enchantment::PROTECTION)` is replaced by `VanillaEnchantments::PROTECTION()`
|
- Example: `Enchantment::get(Enchantment::PROTECTION)` is replaced by `VanillaEnchantments::PROTECTION()`
|
||||||
- These methods also provide proper type information to static analysers instead of just generic `Enchantment`, making them easier to code with.
|
- These methods also provide proper type information to static analysers instead of just generic `Enchantment`, making them easier to code with.
|
||||||
- The boundaries between MCPE enchantment IDs and PocketMine-MP internals are now more clear.
|
- The boundaries between MCPE enchantment IDs and PocketMine-MP internals are now more clear.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user