예제 #1
0
 def test_torch_false(self):
     self.assertFalse(bbool(blocks["redstone-torch-off"].slot, 0x0))
예제 #2
0
 def test_torch_true(self):
     self.assertTrue(bbool(blocks["redstone-torch"].slot, 0x0))
예제 #3
0
 def test_lever_false(self):
     self.assertFalse(bbool(blocks["lever"].slot, 0x7))
예제 #4
0
 def test_lever_true(self):
     self.assertTrue(bbool(blocks["lever"].slot, 0xf))
예제 #5
0
 def test_wire_false(self):
     self.assertFalse(bbool(blocks["redstone-wire"].slot, 0x0))
예제 #6
0
 def test_wire_true(self):
     self.assertTrue(bbool(blocks["redstone-wire"].slot, 0xc))
예제 #7
0
 def test_torch_false(self):
     self.assertFalse(bbool(blocks["redstone-torch-off"].slot, 0x0))
예제 #8
0
 def test_torch_true(self):
     self.assertTrue(bbool(blocks["redstone-torch"].slot, 0x0))
예제 #9
0
 def test_lever_true(self):
     self.assertTrue(bbool(blocks["lever"].slot, 0xf))
예제 #10
0
 def test_lever_false(self):
     self.assertFalse(bbool(blocks["lever"].slot, 0x7))
예제 #11
0
 def test_wire_true(self):
     self.assertTrue(bbool(blocks["redstone-wire"].slot, 0xc))
예제 #12
0
 def test_wire_false(self):
     self.assertFalse(bbool(blocks["redstone-wire"].slot, 0x0))
예제 #13
0
파일: redstone.py 프로젝트: gwylim/bravo
 def from_block(self, block, metadata):
     self.status = bbool(block, metadata)