Region File
class RegionFile @JvmOverloads() constructor(dataSource: DataSource, regionX: Int, regionZ: Int, minY: Int, maxY: Int) : Closeable
Content copied to clipboard
Constructs a Region linked to the given file. Will initialize file contents if the file is not big enough. That means it is valid to pass a newly created and empty file to this constructor, and RegionFile will start filling it.
The RandomAccessFile is ALWAYS sought to the beginning of the file during construction.
Code based on Mojang source codealso based on the Minecraft Wiki "Region File format page"
Constructors
RegionFile
Link copied to clipboard
@JvmOverloads()
Content copied to clipboard
RegionFile
Link copied to clipboard
@JvmOverloads()
Content copied to clipboard
Types
Functions
flushCachedChunks
Link copied to clipboard
fun flushCachedChunks()
Content copied to clipboard
forget
Link copied to clipboard
getBlockState
Link copied to clipboard
getChunk
Link copied to clipboard
getChunkData
Link copied to clipboard
getOrCreateChunk
Link copied to clipboard
hasLoadedChunk
Link copied to clipboard
setBlockState
Link copied to clipboard
writeColumn
Link copied to clipboard
@JvmOverloads()
Content copied to clipboard