SpoutDev/SpoutAPI — pull request #278 by bergerkiller (2012-07-08 16:15:27+00:00)
Title: Fixed warnings and changed getController system

Signed-off-by: Irmo van den Berge

Fixed some of the warnings in the pretty-much-finished classes, and made block.getController() get the controller from the material instead. This should ensure that block.getController() ALWAYS returns an object if the material allows it.

It uses generic casting to make it more user-friendly:
Sign sign = block.getController();

p.s.: Another thing Bukkit didn't have :P