接口 CharacterSelector
- 所有已知实现类:
DefaultCharacterSelector
public interface CharacterSelector
-
方法概要
-
方法详细资料
-
select
GameProfile select(GameProfile[] availableProfiles) throws org.to2mbn.jmccc.auth.AuthenticationException Selects one of the given characters to login.This method may be called during the authentication if no character is selected.
假如在登录期间发现还没有选择一个角色,就会调用这个方法来选择角色。假如这个方法返回
null。(注:一个Yggdrasil账号可以拥有多个游戏角色)- 参数:
availableProfiles- the available characters- 返回:
- the character to login
- 抛出:
org.to2mbn.jmccc.auth.AuthenticationException- if an authentication error occurs
-