本文整理汇总了Python中mceditlib.util.exhaust函数的典型用法代码示例。如果您正苦于以下问题:Python exhaust函数的具体用法?Python exhaust怎么用?Python exhaust使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了exhaust函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: timeFillCeiling
def timeFillCeiling():
temp = bench_temp_level("AnvilWorld")
editor = temp
dim = editor.getDimension()
bounds = dim.bounds
x, y, z = bounds.center
y = 254
x -= size//2
z -= size//2
bounds = BoundingBox((x, y, z), (size, 1, size))
exhaust(dim.fillBlocksIter(bounds, editor.blocktypes["planks"]))
开发者ID:KevinKelley,项目名称:mcedit2,代码行数:11,代码来源:time_fill_ceiling.py
示例2: updateSelection
def updateSelection(self):
if self.dimension is None or self.selection is None:
return
selection = self.selection
self.renderSelection = selection & NonAirMaskSelection(self.dimension, selection)
self.groupNode.clear()
self._loader = None
if selection.chunkCount < 16:
exhaust(self.loadSections())
self.loadTimer.setInterval(333)
开发者ID:hgroene,项目名称:mcedit2,代码行数:12,代码来源:selection.py
示例3: exportSchematic
def exportSchematic(self, selection):
"""
:type selection: mceditlib.box.BoundingBox
:return:
:rtype: WorldEditor
"""
return exhaust(self.exportSchematicIter(selection))
开发者ID:pamunoz,项目名称:mcedit2,代码行数:7,代码来源:worldeditor.py
示例4: displaySchematic
def displaySchematic(self, schematic, offset):
if schematic is not None:
dim = schematic.getDimension()
if self.worldScene:
self.sceneHolderNode.removeChild(self.worldScene)
self.loader.timer.stop()
self.loader = None
atlas = self.editorSession.textureAtlas
self.worldScene = WorldScene(dim, atlas)
self.sceneHolderNode.translateOffset = offset
self.sceneHolderNode.addChild(self.worldScene)
self.loader = WorldLoader(self.worldScene)
if dim.chunkCount() <= self.instantDisplayChunks:
exhaust(self.loader.work())
else:
self.loader.timer.start()
else:
self.clearSchematic()
开发者ID:hgroene,项目名称:mcedit2,代码行数:21,代码来源:generate.py
示例5: copyBlocks
def copyBlocks(
self,
sourceLevel,
sourceSelection,
destinationPoint,
blocksToCopy=None,
entities=True,
create=False,
biomes=False,
updateLights=False,
):
return exhaust(
self.copyBlocksIter(
sourceLevel, sourceSelection, destinationPoint, blocksToCopy, entities, create, biomes, updateLights
)
)
开发者ID:Xelloss-HC,项目名称:mcedit2,代码行数:16,代码来源:worldeditor.py
示例6: extractSchematicFrom
def extractSchematicFrom(sourceDim, box, *a, **kw):
"""
Extract a schematic from the given dimension within the given selection box. The
minimum corner of the given box becomes the schematic's (0,0,0) coordinate.
Parameters
----------
sourceDim : WorldEditorDimension
box : SelectionBox
a :
kw :
Returns
-------
WorldEditor
"""
return exhaust(extractSchematicFromIter(sourceDim, box, *a, **kw))
开发者ID:KevinKelley,项目名称:mcedit2,代码行数:18,代码来源:export.py
示例7: perform
def perform(self):
if len(self.points) > 10:
showProgress("Performing brush...", self._perform(), cancel=True)
else:
exhaust(self._perform())
开发者ID:nkjcqvcpi,项目名称:mcedit2,代码行数:5,代码来源:__init__.py
示例8: extractSchematicFrom
def extractSchematicFrom(sourceDim, box, *a, **kw):
return exhaust(extractSchematicFromIter(sourceDim, box, *a, **kw))
开发者ID:nkjcqvcpi,项目名称:mcedit2,代码行数:2,代码来源:export.py
示例9: saveChanges
def saveChanges(self):
exhaust(self.saveChangesIter())
开发者ID:pamunoz,项目名称:mcedit2,代码行数:2,代码来源:worldeditor.py
示例10: commitUndo
def commitUndo(self, revisionInfo=None):
exhaust(self.commitUndoIter(revisionInfo))
开发者ID:pamunoz,项目名称:mcedit2,代码行数:2,代码来源:worldeditor.py
示例11: generateChunksInLevel
def generateChunksInLevel(self, level, chunks):
return exhaust(self.generateChunksInLevelIter(level, chunks))
开发者ID:kissthink,项目名称:mcedit2,代码行数:2,代码来源:minecraft_server.py
示例12: createLevel
def createLevel(self, level, box, simulate=False, **kw):
return exhaust(self.createLevelIter(level, box, simulate, **kw))
开发者ID:kissthink,项目名称:mcedit2,代码行数:2,代码来源:minecraft_server.py
示例13: generateAtPosition
def generateAtPosition(self, tempWorld, tempDir, cx, cz):
return exhaust(self.generateAtPositionIter(tempWorld, tempDir, cx, cz))
开发者ID:kissthink,项目名称:mcedit2,代码行数:2,代码来源:minecraft_server.py
示例14: loadImmediateChunks
def loadImmediateChunks(self):
if self.selection.chunkCount < 16:
exhaust(self.loadSections())
self.loadTimer.setInterval(333)
开发者ID:nkjcqvcpi,项目名称:mcedit2,代码行数:5,代码来源:selection.py
示例15: testCopyRelight
def testCopyRelight(pc_world, schematic_world):
destDim = pc_world.getDimension()
exhaust(destDim.copyBlocksIter(schematic_world.getDimension(), BoundingBox((0, 0, 0), (32, 64, 32,)),
destDim.bounds.origin))
pc_world.saveChanges()
开发者ID:nkjcqvcpi,项目名称:mcedit2,代码行数:5,代码来源:anvil_test.py
示例16: timeFill
def timeFill():
temp = TempLevel("AnvilWorld")
editor = temp
dim = editor.getDimension()
editor.loadedChunkLimit = 1
exhaust(dim.fillBlocksIter(dim.bounds, editor.blocktypes.OakWoodPlanks))
开发者ID:101baja202,项目名称:mcedit2,代码行数:6,代码来源:time_fill.py
示例17: testCopyRelight
def testCopyRelight(anvilLevel, sourceLevel):
destDim = anvilLevel.getDimension()
exhaust(destDim.copyBlocksIter(sourceLevel.getDimension(), BoundingBox((0, 0, 0), (32, 64, 32,)),
destDim.bounds.origin))
anvilLevel.saveChanges()
开发者ID:101baja202,项目名称:mcedit2,代码行数:5,代码来源:anvil_test.py
示例18: commitUndo
def commitUndo(self):
exhaust(self.commitUndoIter())
开发者ID:EvilSupahFly,项目名称:mcedit2,代码行数:2,代码来源:editorsession.py
示例19: extractSchematicFrom
def extractSchematicFrom(sourceDim, box, entities=True):
return exhaust(extractSchematicFromIter(sourceDim, box, entities))
开发者ID:101baja202,项目名称:mcedit2,代码行数:2,代码来源:export.py
示例20: syncToDisk
def syncToDisk(self):
exhaust(self.syncToDiskIter())
开发者ID:pamunoz,项目名称:mcedit2,代码行数:2,代码来源:worldeditor.py
注:本文中的mceditlib.util.exhaust函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论