classname is the category to which your entity belongs to. Example would be player. When you set your entitie's classname to player then it would become part of the player entities. And when you cycle through all player entities it will return ur entity at one point. Now, name is what identifies your entity.