Lodestone.Minecraft.Java  1.2.6
Loading...
Searching...
No Matches
McRegionRegionIo.h
Go to the documentation of this file.
1//
2// Created by DexrnZacAttack on 11/9/25 using zPc-i2.
3//
4#ifndef LODESTONE_MCREGIONREGIONIO_H
5#define LODESTONE_MCREGIONREGIONIO_H
12
13#include <cstdint>
14#include <stddef.h>
15
18
20 class McRegionRegionIO : public common::conversion::io::RegionIO<&identifiers::MCREGION_REGION_IO, const common::conversion::io::options::OptionPresets::CommonChunkReadOptions, const common::conversion::io::options::OptionPresets::CommonChunkWriteOptions>,
22 conversion::registry::RegistryIdentifierRelation<&conversion::identifiers::CHUNK_IO, const chunk::McRegionChunkIO, &identifiers::MCREGION_CHUNK_IO, conversion::registry::ChunkIORegistry>,
23 conversion::registry::RegistryIdentifierRelation<&identifiers::NBT_CHUNK_IO, const chunk::McRegionNbtChunkIO, &identifiers::MCREGION_NBT_CHUNK_IO, conversion::registry::ChunkIORegistry>
24 > {
25 public:
26 static constexpr int CHUNK_COUNT = 1024;
27 static constexpr int SECTOR_SIZE = 4096;
28
29 std::unique_ptr<common::region::Region>
31
32 // We take coords here so we don't have to convert our existing Level
33 // into a Region. The coords are enough information to correctly write
34 // the chunks
36 };
37} // namespace lodestone::minecraft::java::mcregion::region
38
39#endif // LODESTONE_MCREGIONREGIONIO_H
lodestone::conversion::io::options::OptionsBuilder< ChunkOptions, CommonWriteOptions > CommonChunkWriteOptions
lodestone::conversion::io::options::OptionsBuilder< ChunkOptions, CommonReadOptions > CommonChunkReadOptions
static constexpr int CHUNK_COUNT
Definition McRegionRegionIo.h:26
void write(lodestone::level::Level *c, const common::conversion::io::options::OptionPresets::CommonChunkWriteOptions &options) const override
Definition McRegionRegionIo.cpp:106
static constexpr int SECTOR_SIZE
Definition McRegionRegionIo.h:27
std::unique_ptr< common::region::Region > read(const common::conversion::io::options::OptionPresets::CommonChunkReadOptions &options) const override
Definition McRegionRegionIo.cpp:34
Definition McRegionRegion.cpp:8