pocketmine\item\Item::writeCompoundTag PHP Метод

writeCompoundTag() приватный статический Метод

private static writeCompoundTag ( CompoundTag $tag ) : string
$tag pocketmine\nbt\tag\CompoundTag
Результат string
    private static function writeCompoundTag(CompoundTag $tag) : string
    {
        if (self::$cachedParser === null) {
            self::$cachedParser = new NBT(NBT::LITTLE_ENDIAN);
        }
        self::$cachedParser->setData($tag);
        return self::$cachedParser->write();
    }