@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();
}
RenderItemISBRH.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:ISBRH
作者:
评论列表
文章目录