CTBAPI is CraftThatBlock's API for his various plugins, public or private. This plugin is open-source, and you can see it here.