GuiMachine.java 文件源码

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

项目:Metalworks 作者:
@Override
protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) {
    GlStateManager.pushMatrix();
    GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
    this.drawDefaultBackground();
    Pair<Integer, Integer> invCoords = this.machineInterface.getInventoryLocation(this.tile, this.player);
    if(invCoords != null){
        this.texture.bindTexture(INVENTORY_LOCATION);
        this.drawTexturedModalRect(invCoords.getLeft() + this.guiLeft, invCoords.getRight() + this.guiTop, 0, 0, 176, 85);
    }
    this.machineInterface.drawBackground(this.tile, this, this.texture, this.guiLeft, this.guiTop, mouseX, mouseY, partialTicks);
    if(this.energyBar != null){
        IEnergyStorage energy = this.tile.getEnergy(EnumFacing.NORTH);
        if(energy != null && energy.getMaxEnergyStored() > 0){
            this.energyBar.draw(energy.getEnergyStored(), energy.getMaxEnergyStored(), -1);
        }
    }
    GlStateManager.popMatrix();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号