MCPcopy Index your code
hub / github.com/fogleman/Minecraft / hide_sector

Method hide_sector

main.py:366–373  ·  view source on GitHub ↗

Ensure all blocks in the given sector that should be hidden are removed from the canvas.

(self, sector)

Source from the content-addressed store, hash-verified

364 self.show_block(position, False)
365
366 def hide_sector(self, sector):
367 """ Ensure all blocks in the given sector that should be hidden are
368 removed from the canvas.
369
370 """
371 for position in self.sectors.get(sector, []):
372 if position in self.shown:
373 self.hide_block(position, False)
374
375 def change_sectors(self, before, after):
376 """ Move from sector `before` to sector `after`. A sector is a

Callers 1

change_sectorsMethod · 0.95

Calls 1

hide_blockMethod · 0.95

Tested by

no test coverage detected