mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 03:47:16 +00:00
[ci skip] changelog: add some information about NBT handling changes
This commit is contained in:
parent
ad4ed1c95c
commit
74572fde08
@ -461,6 +461,13 @@ This version features substantial changes to the network system, improving coher
|
||||
- `LeatherPants`
|
||||
- `LeatherTunic`
|
||||
|
||||
#### NBT handling
|
||||
- Serialized NBT byte array caches are no longer stored on itemstacks. These caches were a premature optimization used for network layer serialization and as such were dependent on the network NBT format.
|
||||
- Internal NBT usage has been marginalized. It's no longer necessary to immediately write changes to NBT. The following hooks have been added:
|
||||
- `Item->serializeCompoundTag()`
|
||||
- `Item->deserializeCompoundTag()`
|
||||
- It's planned to remove runtime NBT from items completely, but this currently presents unresolved backwards-compatibility problems.
|
||||
|
||||
#### Enchantment
|
||||
- The following API methods have been renamed:
|
||||
- `Enchantment::registerEnchantment()` -> `Enchantment::register()`
|
||||
|
Loading…
x
Reference in New Issue
Block a user