-
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='')
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
0x105326290>
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 boundinglenx()
leny()
lenz()
__repr__()