@Override
protected void drawGuiContainerBackgroundLayer(float partialTicks,
int mouseX, int mouseY) {
GlStateManager.color(1.0f, 1.0f, 1.0f, 1.0f);
this.mc.getTextureManager().bindTexture(new ResourceLocation("fundamentalchemistry:textures/gui/container/chemical_inventory.png"));
this.drawTexturedModalRect(this.guiLeft, this.guiTop, 0, 0, this.xSize, this.ySize);
//display energy
if(this.inv.max_energy > 0){
int eh = (int)(this.inv.energy/(float)this.inv.max_energy*39);
if(eh > 0)
this.drawTexturedModalRect(this.guiLeft+160, this.guiTop+8+39-eh, 176, 39-eh, 8, eh);
}
}
ChemicalInventoryGui.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:FundamentalChemistry
作者:
评论列表
文章目录