From ddc0f137e7b4876bc52beb65fb2bfa9edf400cc9 Mon Sep 17 00:00:00 2001 From: Stephen B <17461354+buchwasa@users.noreply.github.com> Date: Tue, 27 Oct 2020 17:51:55 -0400 Subject: [PATCH] changelog: VanillaEffects -> VanillaEnchantments (#3884) [ci skip] --- changelogs/4.0-snapshot.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/4.0-snapshot.md b/changelogs/4.0-snapshot.md index 58c79953e..4c051190d 100644 --- a/changelogs/4.0-snapshot.md +++ b/changelogs/4.0-snapshot.md @@ -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. #### 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()` - 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.