public static void renderCore(EntityGolemBase golem, AdditionalGolemCore core) {
GL11.glPushMatrix();
GL11.glRotatef(180.0F, 1.0F, 0.0F, 0.0F);
GL11.glTranslatef(0.0875F, -0.96F, 0.15F + (golem.getGolemDecoration().contains("P") ? 0.03F : 0.0F));
GL11.glScaled(0.175D, 0.175D, 0.175D);
GL11.glRotatef(180.0F, 0.0F, 1.0F, 0.0F);
ItemStack coreItem = core.getItem();
IIcon icon = coreItem.getItem().getIcon(coreItem, 0);
float f1 = icon.getMaxU();
float f2 = icon.getMinV();
float f3 = icon.getMinU();
float f4 = icon.getMaxV();
Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationItemsTexture);
ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f3, f4, icon.getIconWidth(), icon.getIconHeight(), 0.2F);
GL11.glPopMatrix();
}
RenderGolemHelper.java 文件源码
java
阅读 14
收藏 0
点赞 0
评论 0
项目:Gadomancy
作者:
评论列表
文章目录