Refactored all code as minecraft forge prefers.

Signed-off-by: gigimoi <gassmann.gavin@gmail.com>