Getting instance of a class in ArrayList
- by user1499974
I have a small problem with ArrayList. You see, I wish to get an instance of RenderNewHUD in my renderer class, which has a list of registered renderers. I did not want to create a variable for this due to limitations and awkwardness. Here is my code.
RenderNewHUD hud = renderer.renderList.get(RenderNewHUD());
How exactly can I go along getting the instance of RenderNewHUD without creating a new instance?
If you need any more of my code, just ask. Sorry if this is a very dumb question - I have looked EVERYWHERE for an answer.