Use reflection to access NMS methods

This way we don't have to update for each new version of minecraft