def registerBlockInspectorWidget(ID, cls): """ Register a widget with the Block Inspector to use when inspecting TileEntities that have the given ID. xxx make ID an attribute of cls? >>> from PySide import QtGui >>> class MyBarrelInspector(QtGui.QWidget): >>> pass >>> registerBlockInspectorWidget("MyBarrel", MyBarrelInspector) :param cls: :type cls: :return: :rtype: """ return inspector.registerBlockInspectorWidget(ID, cls)
def registerBlockInspectorWidget(cls): """ Register a widget with the Block Inspector for editing a TileEntity The class must have a `tileEntityID` attribute. >>> from PySide import QtGui >>> class MyBarrelInspector(QtGui.QWidget): >>> tileEntityID = "MyBarrel" >>> >>> registerBlockInspectorWidget(MyBarrelInspector) :param cls: :type cls: :return: :rtype: """ _registerClass(cls) return inspector.registerBlockInspectorWidget(cls)
def registerBlockInspectorWidget(ID, cls): """ Register a widget with the Block Inspector to use when inspecting TileEntities that have the given ID. xxx make ID an attribute of cls? >>> from PySide import QtGui >>> class MyBarrelInspector(QtGui.QWidget): >>> pass >>> registerBlockInspectorWidget("MyBarrel", MyBarrelInspector) :param cls: :type cls: :return: :rtype: """ _registerClass(cls) return inspector.registerBlockInspectorWidget(ID, cls)