ChemicalInventoryGui.java 文件源码

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

项目:FundamentalChemistry 作者:
@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);
   }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号