I'm trying to get a list of every entity in the game and check if it is a mob
I've tried doing something like this
public static Set<ResourceLocation> entityList = EntityList.getEntityNameList();
public static ArrayList<String> mobsList = new ArrayList<String>();
for (ResourceLocation entity : entityList) {
if (EntityList.getClass(entity) instanceof EntityMob)
mobsList.add(entity.toString());
//do things with the arraylist
}
It's obiviously not working s