First and foremost I apologize for the threads name, let me explain in depth the situation. Right now I store location data along with an entities name within JSON formatting, I convert this in to usable information ie; locations etc.. No issues. The situation I've come across is that I need to take a string, ie; the entities name, and load it in whenever a chunk is loaded or unloaded. What I'm trying to do is prevent a case where I end up doing: Code (Text): if(name.equals("entity")) then new Entity(loc) end Or a switch case, whatever it may be. I will have numerous custom entities and registry of them that way would be relatively, eh. So, how can I take a string, then using that string find out the custom entity class and load the entity in. I have considered using reflection, not sure if this is the best way of going about it though!