本文整理了Java中net.minecraft.client.Minecraft.getSessionService()
方法的一些代码示例,展示了Minecraft.getSessionService()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Minecraft.getSessionService()
方法的具体详情如下:
包路径:net.minecraft.client.Minecraft
类名称:Minecraft
方法名:getSessionService
暂无
代码示例来源:origin: CoFH/CoFHCore
public static GameProfile loadTextures(GameProfile profile) {
if (profile == null) {
return null;
}
if (profile.isComplete()) {
GameProfile newProfile = textureCache.get(profile);
if (newProfile != null) {
return newProfile;
}
if (!profile.getProperties().containsKey("textures")) {
Property property = (Property) Iterables.getFirst(profile.getProperties().get("textures"), (Object) null);
if (property == null) {
profile = Minecraft.getMinecraft().getSessionService().fillProfileProperties(profile, true);
textureCache.put(profile, profile);
}
}
}
return profile;
}
代码示例来源:origin: CyclopsMC/EvilCraft
if (property == null) {
GameProfile newGameProfile = Minecraft.getMinecraft().getSessionService().fillProfileProperties(gameProfile, true);
checkedProfiles.put(gameProfile, newGameProfile);
内容来源于网络,如有侵权,请联系作者删除!