Package org.jglrxavpok.hephaistos.mca

Types

AnvilException
Link copied to clipboard
class AnvilException(message: String, cause: Throwable?) : Exception
Exception thrown when:
  1. An Anvil file is malformed (missing fields for example)

  2. Trying to access data not available in a RegionFile (like chunks that are not inside the file)

BiomePalette
Link copied to clipboard
class BiomePalette : Palette<String>
BlockPalette
Link copied to clipboard
class BlockPalette : Palette<BlockState>
BlockState
Link copied to clipboard
data class BlockState @JvmOverloads() constructor(name: String, properties: Map<String, String>)
Represents a block state in a section NBT
ChunkColumn
Link copied to clipboard
class ChunkColumn
16x256x16 (XYZ) area of the world.
ChunkSection
Link copied to clipboard
class ChunkSection(y: Byte)
16x16x16 subchunk.
Heightmap
Link copied to clipboard
class Heightmap
Represents a heightmap for a 16x16 area.
Palette
Link copied to clipboard
sealed class Palette<ElementType>
Represents the palette of elements used in a chunk section.
RegionFile
Link copied to clipboard
class RegionFile @JvmOverloads() constructor(dataSource: DataSource, regionX: Int, regionZ: Int, minY: Int, maxY: Int) : Closeable
Constructs a Region linked to the given file.
SupportedVersion
Link copied to clipboard
enum SupportedVersion : Enum<SupportedVersion>

Functions

blockInsideChunk
Link copied to clipboard
fun Int.blockInsideChunk(): Int
blockInsideSection
Link copied to clipboard
fun Int.blockInsideSection(): Int
blockToChunk
Link copied to clipboard
fun Int.blockToChunk(): Int
blockToSection
Link copied to clipboard
fun Int.blockToSection(): Byte
chunkInsideRegion
Link copied to clipboard
fun Int.chunkInsideRegion(): Int
chunkToBlock
Link copied to clipboard
fun Int.chunkToBlock(): Int
chunkToRegion
Link copied to clipboard
fun Int.chunkToRegion(): Int
compress
Link copied to clipboard
fun compress(data: IntArray, lengthInBits: Int): ImmutableLongArray
Compresses the given ints into a long array, at the given lengthInBits bitrate.
decompress
Link copied to clipboard
fun decompress(data: ImmutableLongArray, lengthInBits: Int): IntArray
Decompresses compressed 'data' into a int array, with lengthInBits bits per int.
pack
Link copied to clipboard
fun pack(ints: IntArray, lengthInBits: Int): ImmutableLongArray
Packs ints into a long array.
regionToChunk
Link copied to clipboard
fun Int.regionToChunk(): Int
sectionToBlock
Link copied to clipboard
fun Int.sectionToBlock(): Int
unpack
Link copied to clipboard
fun unpack(longs: ImmutableLongArray, lengthInBits: Int): IntArray
Unpacks int values of 'lengthInBits' bits from a long array.