RenderItemISBRH.java 文件源码

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

项目:ISBRH 作者:
@Override
protected void renderItemModelTransform(ItemStack stack, IBakedModel model,
        ItemCameraTransforms.TransformType cameraTransformType)
{
    this.textureManager.bindTexture(TextureMap.locationBlocksTexture);
    this.textureManager.getTexture(TextureMap.locationBlocksTexture)
            .setBlurMipmap(false, false);
    this.preTransform(stack);
    GlStateManager.enableRescaleNormal();
    GlStateManager.alphaFunc(516, 0.1F);
    GlStateManager.enableBlend();
    GlStateManager.tryBlendFuncSeparate(770, 771, 1, 0);
    GlStateManager.pushMatrix();

    model = net.minecraftforge.client.ForgeHooksClient
            .handleCameraTransforms(model, cameraTransformType);

    renderItem(stack, model, cameraTransformType);
    GlStateManager.popMatrix();
    GlStateManager.disableRescaleNormal();
    GlStateManager.disableBlend();
    this.textureManager.bindTexture(TextureMap.locationBlocksTexture);
    this.textureManager.getTexture(TextureMap.locationBlocksTexture)
            .restoreLastBlurMipmap();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号