# mcedit2 package — mceditlib 0.1 documentation

### Navigation

- index
- modules |
- next |
- previous |
- mceditlib 0.1 documentation »

# mcedit2 package

## Subpackages

- mcedit2.editorcommands package
  - Submodules
  - mcedit2.editorcommands.fill module
  - mcedit2.editorcommands.find_replace module
  - Module contents
- mcedit2.editortools package
  - Subpackages
    - mcedit2.editortools.brush package
      - Module contents
  - Submodules
  - mcedit2.editortools.edit_chunk module
  - mcedit2.editortools.edit_entity module
  - mcedit2.editortools.flood_fill module
  - mcedit2.editortools.generate module
  - mcedit2.editortools.move module
  - mcedit2.editortools.select module
  - Module contents
- mcedit2.handles package
  - Submodules
  - mcedit2.handles.boxhandle module
  - Module contents
- mcedit2.panels package
  - Submodules
  - mcedit2.panels.player module
  - Module contents
- mcedit2.prefs package
  - Submodules
  - mcedit2.prefs.prefswindow module
  - mcedit2.prefs.raw module
  - Module contents
- mcedit2.rendering package
  - Subpackages
    - mcedit2.rendering.chunkmeshes package
      - Submodules
      - mcedit2.rendering.chunkmeshes.entitymesh module
      - mcedit2.rendering.chunkmeshes.lowdetail module
      - mcedit2.rendering.chunkmeshes.terrainpop module
      - mcedit2.rendering.chunkmeshes.tileticks module
      - Module contents
  - Submodules
  - mcedit2.rendering.blockmeshes module
  - mcedit2.rendering.blockmodels module
  - mcedit2.rendering.chunkloader module
  - mcedit2.rendering.chunknode module
  - mcedit2.rendering.chunkupdate module
  - mcedit2.rendering.compass module
  - mcedit2.rendering.cubes module
  - mcedit2.rendering.depths module
  - mcedit2.rendering.frustum module
  - mcedit2.rendering.geometrycache module
  - mcedit2.rendering.layers module
  - mcedit2.rendering.lightmap module
  - mcedit2.rendering.loadablechunks module
  - mcedit2.rendering.modelmesh module
  - mcedit2.rendering.rendergraph module
  - mcedit2.rendering.renderstates module
  - mcedit2.rendering.scenegraph module
  - mcedit2.rendering.selection module
  - mcedit2.rendering.sky module
  - mcedit2.rendering.slices module
  - mcedit2.rendering.textureatlas module
  - mcedit2.rendering.vertexarraybuffer module
  - mcedit2.rendering.worldscene module
  - Module contents
- mcedit2.ui package
  - Module contents
- mcedit2.util package
  - Submodules
  - mcedit2.util.bresenham module
  - mcedit2.util.bugfixes module
  - mcedit2.util.custom_traceback module
  - mcedit2.util.dialogs module
  - mcedit2.util.directories module
  - mcedit2.util.geometry module
  - mcedit2.util.glutils module
  - mcedit2.util.ipython_widget module
  - mcedit2.util.lazyprop module
  - mcedit2.util.load_png module
  - mcedit2.util.load_ui module
  - mcedit2.util.mceaction module
  - mcedit2.util.minecraftinstall module
  - mcedit2.util.objgraphwidget module
  - mcedit2.util.profiler module
  - mcedit2.util.profilerui module
  - mcedit2.util.raycast module
  - mcedit2.util.resources module
  - mcedit2.util.scanmodules module
  - mcedit2.util.screen module
  - mcedit2.util.settings module
  - mcedit2.util.showprogress module
  - mcedit2.util.undostack module
  - mcedit2.util.worldloader module
  - Module contents
- mcedit2.widgets package
  - Subpackages
    - mcedit2.widgets.nbttree package
      - Submodules
      - mcedit2.widgets.nbttree.nbteditor module
      - mcedit2.widgets.nbttree.nbttreemodel module
      - Module contents
  - Submodules
  - mcedit2.widgets.blockpicker module
  - mcedit2.widgets.blocktype_list module
  - mcedit2.widgets.flowlayout module
  - mcedit2.widgets.infopanel module
  - mcedit2.widgets.layout module
  - mcedit2.widgets.log_view module
  - mcedit2.widgets.objectinspector module
  - mcedit2.widgets.propertylist module
  - mcedit2.widgets.shapewidget module
  - mcedit2.widgets.spinslider module
  - Module contents
- mcedit2.worldview package
  - Submodules
  - mcedit2.worldview.camera module
  - mcedit2.worldview.cutaway module
  - mcedit2.worldview.fourup module
  - mcedit2.worldview.iso module
  - mcedit2.worldview.minimap module
  - mcedit2.worldview.overhead module
  - mcedit2.worldview.viewaction module
  - mcedit2.worldview.viewcontrols module
  - mcedit2.worldview.worldruler module
  - mcedit2.worldview.worldview module
  - Module contents

## Submodules

## mcedit2.command module

command

class `mcedit2.command.``SimplePerformCommand`(editorSession)

  Bases: `PySide.QtGui.QUndoCommand`

  `performed` = False
  `undo`()
  `redo`()
  `perform`()

class `mcedit2.command.``SimpleRevisionCommand`(editorSession, text, *args, **kwargs)

  Bases: `PySide.QtGui.QUndoCommand`

  `previousRevision` = None
  `currentRevision` = None
  `undo`()
  `redo`()
  `begin`(*args, **kwds)

## mcedit2.editorapp module

class `mcedit2.editorapp.``MCEditMainWindow`(*args, **kwargs)

  Bases: `PySide.QtGui.QMainWindow`

  `loadSettings`()
  `saveSettings`()
  `closeEvent`(event)
  `staticMetaObject` = <PySide.QtCore.QMetaObject object at 0x00000000087F8C08>

class `mcedit2.editorapp.``MCEditApp`(argv, DEBUG=False)

  Bases: `PySide.QtGui.QApplication`

  `didFinishLaunching`(*a, **kw)
  `consoleWidget` = None
  `createDebugMenu`()
  `ensureSingle`()
  `parseArgs`(argv)
  `updateStatusLabel`(pos=None, blocktype=None, cps=None, fps=None)
  `idleTime` = 333
  `loadTimerFired`(*a, **kw)
  `sessionDidChange`(session, previousSession)

  `updateSessionDockWidgets`(session)
  `removeSessionDockWidgets`()
  `updateRecentFilesMenu`()
  `addRecentFile`(filename)
  `tabCloseRequested`(index)
  `sessionChanged` = <PySide.QtCore.Signal object at 0x00000000087D8AB0>
  `tabChanged`()
  `currentTab`()

    :rtype : EditorTab | QWidget

  `currentSession`()

    Return the current session. Return None if the frontmost tab is not a session tab.

    :rtype : EditorSession | None

  `loadFile`(filename, readonly=False)
  `libraryItemDoubleClicked`(filename)
  `editWorldFromList`(filename)
  `viewWorldFromList`(filename)
  `repairWorldFromList`(filename)
  `backupWorldFromList`(filename)
  `createNewWorld`()
  `chooseOpenWorld`()
  `showWorldList`()
  `saveCurrentWorld`()
  `saveCurrentWorldAs`()
  `closeCurrentTab`()
  `exitEditor`()
  `showAbout`()
  `recentFileLimit` = 15
  `showBlockList`()
  `hideWorldList`()
  `staticMetaObject` = <PySide.QtCore.QMetaObject object at 0x00000000087F8488>

## mcedit2.editorsession module

`mcedit2.editorsession.``log` = <logging.Logger object at 0x00000000085BD630>

  An EditorSession is a world currently opened for editing, the state of the editor including the current selection box, the editor tab containing its viewports, its command history, a separate instance of each editor tool (why?), and the ChunkLoader that coordinates loading chunks into its viewports.

class `mcedit2.editorsession.``PendingImport`(schematic, pos, text)

  Bases: `object`

  `bounds`

class `mcedit2.editorsession.``PasteImportCommand`(editorSession, pendingImport, text, *args, **kwargs)

  Bases: `PySide.QtGui.QUndoCommand`

  `undo`()
  `redo`()

class `mcedit2.editorsession.``EditorSession`(filename, versionInfo, readonly=False)

  Bases: `PySide.QtCore.QObject`

  `copiedSchematic` = None

    :type : WorldEditor

  `dispose`()
  `focusWorldView`()
  `selectionChanged` = <PySide.QtCore.Signal object at 0x00000000085BD650>
  `currentSelection`
  `enableSelectionCommands`(enable)
  `save`()
  `cut`()
  `copy`()
  `paste`()
  `pasteBlocks`()
  `pasteEntities`()
  `clear`()
  `findReplace`()
  `selectAll`()
  `importSchematic`(filename)
  `revisionChanged` = <PySide.QtCore.Signal object at 0x00000000085BD688>
  `undoIndexChanged`(index)
  `pushCommand`(command)
  `setUndoBlock`(callback)
  `removeUndoBlock`(callback)
  `beginUndo`()
  `commitUndo`()
  `undoForward`()
  `undoBackward`()
  `gotoRevision`(index)
  `currentRevision`
  `loadDone`()
  `toolShortcut`(name)
  `chooseTool`(name)
  `toolChanged` = <PySide.QtCore.Signal object at 0x00000000085BD6C0>
  `chunkDidComplete`()
  `updateStatusFromEvent`(event)
  `viewMousePress`(event)
  `viewMouseMove`(event)
  `viewMouseDrag`(event)
  `viewMouseRelease`(event)
  `tabCaption`()
  `closeTab`()
  `staticMetaObject` = <PySide.QtCore.QMetaObject object at 0x00000000085BB9C8>

class `mcedit2.editorsession.``EditorTab`(editorSession)

  Bases: `PySide.QtGui.QWidget`

  EditorTab is the widget containing the editor viewports, the minimap, and the settings panel for the currently selected tool.

  `destroy`()
  `toolDidChange`(tool)
  `saveState`()
  `viewChanged` = <PySide.QtCore.Signal object at 0x00000000085BD6F8>
  `viewDidChange`(view)
  `viewOffsetChanged`(view)
  `currentView`()

    Return type: | mcedit2.worldview.worldview.WorldView

  `staticMetaObject` = <PySide.QtCore.QMetaObject object at 0x00000000085BBA08>
  `showViewFrame`(frame)
  `showOverheadView`()
  `showCutawayView`()
  `showCameraView`()

## mcedit2.library module

library

class `mcedit2.library.``LibraryTreeModel`

  Bases: `PySide.QtGui.QFileSystemModel`

  `columnCount`(*args, **kwargs)
  `staticMetaObject` = <PySide.QtCore.QMetaObject object at 0x0000000008484808>

class `mcedit2.library.``LibraryWidget`

  Bases: `PySide.QtGui.QWidget`

  `openFolder`()
  `itemDoubleClicked`(index)
  `doubleClicked` = <PySide.QtCore.Signal object at 0x0000000008480DC0>
  `staticMetaObject` = <PySide.QtCore.QMetaObject object at 0x000000000848AF88>

## mcedit2.main module

main.py

`mcedit2.main.``excepthook`(exc_type, exc_value, exc_tb)

`mcedit2.main.``main`()

`mcedit2.main.``setup_logging`()

`mcedit2.main.``startup`(*a, **kw)

## mcedit2.resourceloader module

${NAME}

exception `mcedit2.resourceloader.``ResourceNotFound`

  Bases: `exceptions.KeyError`

class `mcedit2.resourceloader.``ResourceLoader`

  Bases: `object`

  `addZipFile`(zipPath)
  `openStream`(path)

## mcedit2.worldlist module

`mcedit2.worldlist.``lastPlayedTime`(adapter)

`mcedit2.worldlist.``usefulFilename`(adapter)

class `mcedit2.worldlist.``WorldListItemWidget`(worldAdapter, parent=None)

  Bases: `PySide.QtGui.QPushButton`

  `doubleClicked` = <PySide.QtCore.Signal object at 0x00000000087D8928>
  `mouseDoubleClickEvent`(event)
  `setErrorMessage`(msg)
  `staticMetaObject` = <PySide.QtCore.QMetaObject object at 0x00000000087F8A48>

class `mcedit2.worldlist.``WorldListWidget`(parent=None, f=0)

  Bases: `PySide.QtGui.QDialog`

  `getSelectedIVP`()
  `reloadList`()
  `openWorldClicked`()
  `worldListItemClicked`(i)
  `setWorldView`(worldView)
  `removeWorldView`()
  `closeEvent`(event)
  `showEvent`(event)
  `worldListItemDoubleClicked`()
  `loadTimerFired`(*a, **kw)
  `editWorldClicked` = <PySide.QtCore.Signal object at 0x00000000087D8960>
  `viewWorldClicked` = <PySide.QtCore.Signal object at 0x00000000087D89D0>
  `repairWorldClicked` = <PySide.QtCore.Signal object at 0x00000000087D8A08>
  `backupWorldClicked` = <PySide.QtCore.Signal object at 0x00000000087D8A40>
  `editClicked`()
  `viewClicked`()
  `repairClicked`()
  `backupClicked`()
  `configureClicked`()
  `staticMetaObject` = <PySide.QtCore.QMetaObject object at 0x00000000087F8A88>

## Module contents

### Navigation

- index
- modules |
- next |
- previous |
- mceditlib 0.1 documentation »