public static void drawPotionEffect(PotionEffect potion, int x, int y) {
int index = potion.getPotion().getStatusIconIndex();
GlStateManager.pushMatrix();
RenderHelper.enableGUIStandardItemLighting();
GlStateManager.disableLighting();
GlStateManager.enableRescaleNormal();
GlStateManager.enableColorMaterial();
GlStateManager.enableLighting();
GlStateManager.enableTexture2D();
GlStateManager.color(1.f, 1.f, 1.f, 1.f);
MC.getTextureManager().bindTexture(GuiContainer.INVENTORY_BACKGROUND);
drawTexturedRect(x, y, index % 8 * 18, 198 + index / 8 * 18, 18, 18, 100);
potion.getPotion().renderHUDEffect(x, y, potion, MC, 255);
GlStateManager.disableLighting();
GlStateManager.enableDepth();
GlStateManager.color(1.f, 1.f, 1.f, 1.f);
GlStateManager.popMatrix();
}
SurfaceHelper.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:ForgeHax
作者:
评论列表
文章目录