Returns False is given `position` is surrounded on all 6 sides by blocks, True otherwise.
(self, position)
| 220 | return None, None |
| 221 | |
| 222 | def exposed(self, position): |
| 223 | """ Returns False is given `position` is surrounded on all 6 sides by |
| 224 | blocks, True otherwise. |
| 225 | |
| 226 | """ |
| 227 | x, y, z = position |
| 228 | for dx, dy, dz in FACES: |
| 229 | if (x + dx, y + dy, z + dz) not in self.world: |
| 230 | return True |
| 231 | return False |
| 232 | |
| 233 | def add_block(self, position, texture, immediate=True): |
| 234 | """ Add a block with the given `texture` and `position` to the world. |
no outgoing calls
no test coverage detected