Skip to content
Freek Dijkstra edited this page May 14, 2018 · 12 revisions

nbt.world Module

Handles a Minecraft world save using either the Anvil or McRegion format.

exception nbt.world.UnknownWorldFormat(msg='')

Bases: Exception

Unknown or invalid world folder.

__init__(msg='')

Initialize self. See help(type(self)) for accurate signature.

class nbt.world.McRegionWorldFolder(world_folder)

Bases: nbt.world._BaseWorldFolder

Represents a world save using the old McRegion format.

type = 'McRegion'

extension = 'mcr'

chunkclass

alias of nbt.chunk.McRegionChunk

class nbt.world.AnvilWorldFolder(world_folder)

Bases: nbt.world._BaseWorldFolder

Represents a world save using the new Anvil format.

type = 'Anvil'

extension = 'mca'

chunkclass

alias of nbt.chunk.Chunk

nbt.world.WorldFolder = <nbt.world._WorldFolderFactory object>

Factory instance that returns a AnvilWorldFolder or McRegionWorldFolder instance, or raise a UnknownWorldFormat.

class nbt.world.BoundingBox(minx=None, maxx=None, miny=None, maxy=None, minz=None, maxz=None)

Bases: object

A bounding box of x,y,z coordinates.

__init__(minx=None, maxx=None, miny=None, maxy=None, minz=None, maxz=None)

Initialize self. See help(type(self)) for accurate signature.

expand(x, y, z)

Expands the bounding

lenx()

leny()

lenz()

__repr__()

Return repr(self).
Clone this wiki locally