public void AddComponent(Component component) {
        if (RenderComponent.class.isInstance(component))
            renderComponent = (RenderComponent) component;

        component.setOwnerEntity(this);
        components.add(component);
    }