Beispiel #1
0
 def test_torch_false(self):
     self.assertFalse(bbool(blocks["redstone-torch-off"].slot, 0x0))
Beispiel #2
0
 def test_torch_true(self):
     self.assertTrue(bbool(blocks["redstone-torch"].slot, 0x0))
Beispiel #3
0
 def test_lever_false(self):
     self.assertFalse(bbool(blocks["lever"].slot, 0x7))
Beispiel #4
0
 def test_lever_true(self):
     self.assertTrue(bbool(blocks["lever"].slot, 0xf))
Beispiel #5
0
 def test_wire_false(self):
     self.assertFalse(bbool(blocks["redstone-wire"].slot, 0x0))
Beispiel #6
0
 def test_wire_true(self):
     self.assertTrue(bbool(blocks["redstone-wire"].slot, 0xc))
Beispiel #7
0
 def test_torch_false(self):
     self.assertFalse(bbool(blocks["redstone-torch-off"].slot, 0x0))
Beispiel #8
0
 def test_torch_true(self):
     self.assertTrue(bbool(blocks["redstone-torch"].slot, 0x0))
Beispiel #9
0
 def test_lever_true(self):
     self.assertTrue(bbool(blocks["lever"].slot, 0xf))
Beispiel #10
0
 def test_lever_false(self):
     self.assertFalse(bbool(blocks["lever"].slot, 0x7))
Beispiel #11
0
 def test_wire_true(self):
     self.assertTrue(bbool(blocks["redstone-wire"].slot, 0xc))
Beispiel #12
0
 def test_wire_false(self):
     self.assertFalse(bbool(blocks["redstone-wire"].slot, 0x0))
Beispiel #13
0
 def from_block(self, block, metadata):
     self.status = bbool(block, metadata)