コード例 #1
0
ファイル: world.py プロジェクト: b1naryth1ef/BroCraft
 def modifyBlock(self, to, *args):
     x, y, z = getXYZ(args)
     self.level.setBlockAt(x, y, z, to)
     self.game.broadcast(Packet("block", x=x, y=y, z=z, type=to, meta=0))
コード例 #2
0
ファイル: world.py プロジェクト: b1naryth1ef/BroCraft
 def getBlock(self, *args):
     return self.level.blockAt(*getXYZ(args))