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!