✔️ Provides classes for serialize item
kim\present\utils\itemserialize\ItemSerializeUtils
kim\present\utils\itemserialize\SerializeMode
✔️ Provides util function for serialize item
ItemSerializeUtils::serialize(Item $item, SerializeMode $mode = SerializeMode::BINARY) : string
✔️ Provides util function for deserialize item
ItemSerializeUtils::deserialize(string $contents, SerializeMode $mode = SerializeMode::BINARY) : Item
✔️ Provides multiple serialize modes
SerializeMode::BINARY
: Binary string that write by BigEndianNbtSerializerSerializeMode::BASE64
: Same as BINARY, but encoded in base64_encode()SerializeMode::HEX
: Same as BINARY, but encoded in bin2hex()SerializeMode::SNBT
: Stringified Named Binary Tag format stringSerializeMode::JSON
: JSON format string
NOTE : JSON mode is not same as
Item::legacyJsonDeserialize()
See Official Poggit Virion Documentation
See Main Document
Distributed under the MIT. See LICENSE for more information