本文整理匯總了Java中com.mojang.authlib.GameProfile.isComplete方法的典型用法代碼示例。如果您正苦於以下問題:Java GameProfile.isComplete方法的具體用法?Java GameProfile.isComplete怎麽用?Java GameProfile.isComplete使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.mojang.authlib.GameProfile
的用法示例。
在下文中一共展示了GameProfile.isComplete方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: updateGameprofile
import com.mojang.authlib.GameProfile; //導入方法依賴的package包/類
public GameProfile updateGameprofile(GameProfile input) {
if (input != null && !StringUtils.isNullOrEmpty(input.getName())) {
if (input.isComplete() && input.getProperties().containsKey("textures")) {
return input;
} else if (profileCache != null && sessionService != null) {
GameProfile gameprofile = profileCache.getGameProfileForUsername(input.getName());
if (gameprofile == null) {
return input;
} else {
Property property = (Property) Iterables.getFirst(gameprofile.getProperties().get("textures"), (Object) null);
if (property == null) {
gameprofile = sessionService.fillProfileProperties(gameprofile, true);
}
return gameprofile;
}
} else {
return input;
}
} else {
return input;
}
}
示例2: updateGameprofile
import com.mojang.authlib.GameProfile; //導入方法依賴的package包/類
public static GameProfile updateGameprofile(GameProfile input)
{
if (input != null && !StringUtils.isNullOrEmpty(input.getName()))
{
if (input.isComplete() && input.getProperties().containsKey("textures"))
{
return input;
}
else if (MinecraftServer.getServer() == null)
{
return input;
}
else
{
GameProfile gameprofile = MinecraftServer.getServer().getPlayerProfileCache().getGameProfileForUsername(input.getName());
if (gameprofile == null)
{
return input;
}
else
{
Property property = (Property)Iterables.getFirst(gameprofile.getProperties().get("textures"), null);
if (property == null)
{
gameprofile = MinecraftServer.getServer().getMinecraftSessionService().fillProfileProperties(gameprofile, true);
}
return gameprofile;
}
}
}
else
{
return input;
}
}
示例3: updateGameprofile
import com.mojang.authlib.GameProfile; //導入方法依賴的package包/類
public static GameProfile updateGameprofile(GameProfile input)
{
if (input != null && !StringUtils.isNullOrEmpty(input.getName()))
{
if (input.isComplete() && input.getProperties().containsKey("textures"))
{
return input;
}
else if (profileCache != null && sessionService != null)
{
GameProfile gameprofile = profileCache.getGameProfileForUsername(input.getName());
if (gameprofile == null)
{
return input;
}
else
{
Property property = (Property)Iterables.getFirst(gameprofile.getProperties().get("textures"), null);
if (property == null)
{
gameprofile = sessionService.fillProfileProperties(gameprofile, true);
}
return gameprofile;
}
}
else
{
return input;
}
}
else
{
return input;
}
}