本文整理了Java中net.minecraft.client.Minecraft.getSkinManager()
方法的一些代码示例,展示了Minecraft.getSkinManager()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Minecraft.getSkinManager()
方法的具体详情如下:
包路径:net.minecraft.client.Minecraft
类名称:Minecraft
方法名:getSkinManager
暂无
代码示例来源:origin: P3pp3rF1y/AncientWarfare2
@Override
public Optional<ResourceLocation> getPlayerSkin(String name) {
Optional<GameProfile> gp = getProfile(name);
if (gp.isPresent()) {
SkinManager manager = Minecraft.getMinecraft().getSkinManager();
Map<MinecraftProfileTexture.Type, MinecraftProfileTexture> map = manager.loadSkinFromCache(gp.get());
if (map.containsKey(MinecraftProfileTexture.Type.SKIN)) {
return Optional.of(manager.loadSkin(map.get(MinecraftProfileTexture.Type.SKIN), MinecraftProfileTexture.Type.SKIN));
}
}
return Optional.empty();
}
代码示例来源:origin: Darkhax-Minecraft/Bookshelf
final Map<Type, MinecraftProfileTexture> map = minecraft.getSkinManager().loadSkinFromCache(profile);
return minecraft.getSkinManager().loadSkin(map.get(Type.SKIN), Type.SKIN);
代码示例来源:origin: CyclopsMC/EvilCraft
Map map = minecraft.getSkinManager().loadSkinFromCache(checkedProfiles.get(gameProfile));
if (map.containsKey(MinecraftProfileTexture.Type.SKIN)) {
resourcelocation = minecraft.getSkinManager().loadSkin((MinecraftProfileTexture) map.get(MinecraftProfileTexture.Type.SKIN), MinecraftProfileTexture.Type.SKIN);
代码示例来源:origin: CoFH/CoFHCore
Map map = minecraft.getSkinManager().loadSkinFromCache(profile);
resourcelocation = minecraft.getSkinManager().loadSkin((MinecraftProfileTexture) map.get(MinecraftProfileTexture.Type.SKIN), MinecraftProfileTexture.Type.SKIN);
内容来源于网络,如有侵权,请联系作者删除!