• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CyclopsMC / IntegratedDynamics / 16552051255

27 Jul 2025 01:58PM UTC coverage: 53.206% (+8.0%) from 45.161%
16552051255

push

github

rubensworks
Resolve minor TODOs

2888 of 8740 branches covered (33.04%)

Branch coverage included in aggregate %.

17341 of 29280 relevant lines covered (59.22%)

3.08 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/org/cyclops/integrateddynamics/client/gui/container/ContainerScreenCoalGenerator.java
1
package org.cyclops.integrateddynamics.client.gui.container;
2

3
import net.minecraft.client.gui.GuiGraphics;
4
import net.minecraft.client.renderer.RenderPipelines;
5
import net.minecraft.network.chat.Component;
6
import net.minecraft.resources.ResourceLocation;
7
import net.minecraft.util.ARGB;
8
import net.minecraft.world.entity.player.Inventory;
9
import org.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended;
10
import org.cyclops.integrateddynamics.Reference;
11
import org.cyclops.integrateddynamics.blockentity.BlockEntityCoalGenerator;
12
import org.cyclops.integrateddynamics.inventory.container.ContainerCoalGenerator;
13

14
/**
15
 * Gui for the coal generator.
16
 * @author rubensworks
17
 */
18
public class ContainerScreenCoalGenerator extends ContainerScreenExtended<ContainerCoalGenerator> {
19

20
    public ContainerScreenCoalGenerator(ContainerCoalGenerator container, Inventory inventory, Component title) {
21
        super(container, inventory, title);
×
22
    }
×
23

24
    @Override
25
    protected ResourceLocation constructGuiTexture() {
26
        return ResourceLocation.fromNamespaceAndPath(Reference.MOD_ID, "textures/gui/coal_generator.png");
×
27
    }
28

29
    @Override
30
    protected void renderBg(GuiGraphics guiGraphics, float partialTicks, int mouseX, int mouseY) {
31
        super.renderBg(guiGraphics, partialTicks, mouseX, mouseY);
×
32
        int lastProgress = getMenu().getProgress();
×
33
        if (lastProgress >= 0) {
×
34
            guiGraphics.blit(RenderPipelines.GUI_TEXTURED, getGuiTexture(), getGuiLeftTotal() + 81, getGuiTopTotal() + 30 + lastProgress, 176,
×
35
                    lastProgress, 14, BlockEntityCoalGenerator.MAX_PROGRESS - lastProgress + 1, 256, 256);
36
        }
37
    }
×
38

39
    @Override
40
    protected void renderLabels(GuiGraphics guiGraphics, int x, int y) {
41
        // super.drawGuiContainerForegroundLayer(matrixStack, x, y);
42
        guiGraphics.drawString(font, this.title, this.titleLabelX, this.titleLabelY, ARGB.opaque(4210752), false);
×
43
    }
×
44
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc