def testRemainBlocksWhichAreSurroundedByTransparentBlocks(self):
        blockDef = getBlockByName('Water')
        
        # make sure our block got the expected attributes
        self.assertTrue(blockDef.cube)
        self.assertTrue(blockDef.transparent)
        self.assertFalse(blockDef.invisible)

        self.assertTrue(self._isCenterBlockRemaining(blockDef))
示例#2
0
    def testRemainBlocksWhichAreSurroundedByTransparentBlocks(self):
        blockDef = getBlockByName('Water')

        # make sure our block got the expected attributes
        self.assertTrue(blockDef.cube)
        self.assertTrue(blockDef.transparent)
        self.assertFalse(blockDef.invisible)

        self.assertTrue(self._isCenterBlockRemaining(blockDef))
 def testGetExistingBlock(self):
     self.assertEqual(getBlockByName("Bedrock").id, self.world.getBlock(0, 0, 0))
     self.assertEqual(getBlockByName("Stone").id, self.world.getBlock(-1, 10, -1))
 def testGetExistingBlock(self):
     self.assertEqual(getBlockByName('Bedrock').id, self.world.getBlock(0, 0, 0))
     self.assertEqual(getBlockByName('Stone').id, self.world.getBlock(-1, 10, -1))