Changed Energy API to use Math.min. Added IEnderAttuned.

Signed-off-by: King Lemming <kinglemming@gmail.com>