I have to use get(PlayerNetworkComponent.class); Or I have to cast it.