JulianThijssen/Radiant — pull request #35 by keddelzz (2014-12-12 16:22:42+00:00)
Title: Update Entity.java

Hey!

I'm just watching your Stream and seeing that you always cast the result of this Method like this:
Foo asd = (Foo) entity.getComponent(Foo.class);
What my change does is that the method automatically casts the result for you, based on the Class you pass to the method.
So you can do for example:
Foo asd = entity.getComponent(Foo.class);

Have a nice day!