Lodestone.Minecraft.Java  1.2.6
Loading...
Searching...
No Matches
JungleAnvilRegionIo.h
Go to the documentation of this file.
1//
2// Created by DexrnZacAttack on 11/26/25 using zPc-i2.
3//
4#ifndef LODESTONE_JUNGLEANVILREGIONIO_H
5#define LODESTONE_JUNGLEANVILREGIONIO_H
9
13
16
18 class JungleAnvilRegionIO : public common::conversion::io::RegionIO<&identifiers::ANVIL_JUNGLE_REGION_IO, const common::conversion::io::options::OptionPresets::CommonChunkReadOptions, const common::conversion::io::options::OptionPresets::CommonChunkWriteOptions>,
20 conversion::registry::RegistryIdentifierRelation<&lodestone::conversion::identifiers::CHUNK_IO, const chunk::JungleAnvilChunkIO, &identifiers::ANVIL_JUNGLE_CHUNK_IO, conversion::registry::ChunkIORegistry>
21 > {
22 public:
23 static constexpr int CHUNK_COUNT = 1024;
24 static constexpr int SECTOR_SIZE = 4096;
25
26 std::unique_ptr<common::region::Region> read(const common::conversion::io::options::OptionPresets::CommonChunkReadOptions &options) const override;
27
28 // We take coords here so we don't have to convert our existing Level
29 // into a Region. The coords are enough information to correctly write
30 // the chunks
32 };
33} // namespace lodestone::minecraft::java::anvil::jungle::region
34
35#endif // LODESTONE_ANVILREGIONIO_H
lodestone::conversion::io::options::OptionsBuilder< ChunkOptions, CommonWriteOptions > CommonChunkWriteOptions
lodestone::conversion::io::options::OptionsBuilder< ChunkOptions, CommonReadOptions > CommonChunkReadOptions
std::unique_ptr< common::region::Region > read(const common::conversion::io::options::OptionPresets::CommonChunkReadOptions &options) const override
Definition JungleAnvilRegionIo.cpp:25
static constexpr int SECTOR_SIZE
Definition JungleAnvilRegionIo.h:24
void write(lodestone::level::Level *c, const common::conversion::io::options::OptionPresets::CommonChunkWriteOptions &options) const override
Definition JungleAnvilRegionIo.cpp:101
static constexpr int CHUNK_COUNT
Definition JungleAnvilRegionIo.h:23
Definition JungleAnvilRegion.cpp:6