CorpseRendererHelper.java 文件源码

java
阅读 19 收藏 0 点赞 0 评论 0

项目:Gravestone-mod-Extended 作者:
private static void bindHorseTexture(int horseType) {
    switch (horseType) {
        case 0:
            String horseTexturePath = horse.getHorseTexture();
            ResourceLocation horseResourceLocation = (ResourceLocation) horsesTexturesMap.get(horseTexturePath);
            if (horseResourceLocation == null) {
                horseResourceLocation = new ResourceLocation(horseTexturePath);
                Minecraft.getMinecraft().getTextureManager().loadTexture(horseResourceLocation, new LayeredTexture(horse.getVariantTexturePaths()));
                horsesTexturesMap.put(horseTexturePath, horseResourceLocation);
            }
            Minecraft.getMinecraft().renderEngine.bindTexture(horseResourceLocation);
            break;
        case 1:
            Minecraft.getMinecraft().renderEngine.bindTexture(Resources.DONKEY);
            break;
        case 2:
            Minecraft.getMinecraft().renderEngine.bindTexture(Resources.MULE);
            break;
        case 3:
            Minecraft.getMinecraft().renderEngine.bindTexture(Resources.ZOMBIE_HORSE);
            break;
        case 4:
            Minecraft.getMinecraft().renderEngine.bindTexture(Resources.SKELETON_HORSE);
            break;
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号