-
Notifications
You must be signed in to change notification settings - Fork 74
World
Handles a Minecraft world save using either the Anvil or McRegion format.
``exception nbt.world.UnknownWorldFormat(msg)``
Bases: exceptions.Exception
Unknown or invalid world folder.
``__init__(msg)``
``exception nbt.world.InconceivedChunk``
Bases: exceptions.LookupError
Specified chunk has not yet been generated
``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 ofChunk
``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 ofChunk
``nbt.world.WorldFolder = <nbt.world._WorldFolderFactory instance at 0x101f77c20>``
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)``
``expand(x, y, z)``
Expands the bounding``lenx()``
``leny()``
``lenz()``
``__repr__()``