public LocalVersionComponent(MinecraftProfile profile) {
this.profile = profile;
drawName = profile.getProfileName();
name = "local:" + profile.getProfileName();
profile.addUpdateListener(new IProfileUpdateListener() {
@Override
public void onProfileUpdate(ProfileUpdateEvent event) {
repaint();
}
});