Skip to content

Commit 254ea67

Browse files
committed
better coke oven jei page
1 parent 19ce515 commit 254ea67

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

src/main/java/gregtech/api/gui/GuiTextures.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ public class GuiTextures {
140140
public static final TextureArea PROGRESS_BAR_CANNER = TextureArea.fullImage("textures/gui/progress_bar/progress_bar_canner.png");
141141
public static final TextureArea PROGRESS_BAR_CIRCUIT = TextureArea.fullImage("textures/gui/progress_bar/progress_bar_circuit.png");
142142
public static final TextureArea PROGRESS_BAR_CIRCUIT_ASSEMBLER = TextureArea.fullImage("textures/gui/progress_bar/progress_bar_circuit_assembler.png");
143+
public static final TextureArea PROGRESS_BAR_COKE_OVEN = TextureArea.fullImage("textures/gui/progress_bar/progress_bar_coke_oven.png");
143144
public static final TextureArea PROGRESS_BAR_COMPRESS = TextureArea.fullImage("textures/gui/progress_bar/progress_bar_compress.png");
144145
public static final TextureArea PROGRESS_BAR_CRACKING = TextureArea.fullImage("textures/gui/progress_bar/progress_bar_cracking.png");
145146
public static final TextureArea PROGRESS_BAR_CRYSTALLIZATION = TextureArea.fullImage("textures/gui/progress_bar/progress_bar_crystallization.png");

src/main/java/gregtech/integration/jei/recipe/primitive/CokeOvenRecipeCategory.java

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,27 @@ public class CokeOvenRecipeCategory extends PrimitiveRecipeCategory<CokeOvenReci
1818
protected final IDrawable slot;
1919
protected final IDrawable progressBar;
2020
protected final IDrawable fluidTank;
21-
protected final IDrawable fluidTankOverlay;
2221

2322

2423
public CokeOvenRecipeCategory(IGuiHelper guiHelper) {
2524
super("coke_oven",
2625
"gregtech.machine.coke_oven.name",
27-
guiHelper.createBlankDrawable(176, 166), guiHelper);
26+
guiHelper.createBlankDrawable(176, 60), guiHelper);
2827

2928
this.slot = guiHelper.drawableBuilder(GuiTextures.SLOT.imageLocation, 0, 0, 18, 18).setTextureSize(18, 18).build();
30-
this.progressBar = guiHelper.drawableBuilder(GuiTextures.BRONZE_BLAST_FURNACE_PROGRESS_BAR.imageLocation, 0, 0, 20, 15).setTextureSize(20, 30).build();
31-
this.fluidTank = guiHelper.drawableBuilder(GuiTextures.FLUID_TANK_BACKGROUND.imageLocation, 0, 0, 20, 58).setTextureSize(20, 58).build();
32-
this.fluidTankOverlay = guiHelper.drawableBuilder(GuiTextures.FLUID_TANK_OVERLAY.imageLocation, 0, 0, 20, 58).setTextureSize(20, 58).build();
29+
this.progressBar = guiHelper.drawableBuilder(GuiTextures.PROGRESS_BAR_COKE_OVEN.imageLocation, 0, 0, 36, 18).setTextureSize(36, 18).build();
30+
this.fluidTank = guiHelper.drawableBuilder(GuiTextures.FLUID_SLOT.imageLocation, 0, 0, 18, 18).setTextureSize(18, 18).build();
31+
// this.fluidTankOverlay = guiHelper.drawableBuilder(GuiTextures.FLUID_TANK_OVERLAY.imageLocation, 0, 0, 20, 58).setTextureSize(20, 58).build();
3332
}
3433

3534
@Override
3635
public void setRecipe(IRecipeLayout recipeLayout, @Nonnull CokeOvenRecipeWrapper recipeWrapper, @Nonnull IIngredients ingredients) {
3736
IGuiItemStackGroup itemStackGroup = recipeLayout.getItemStacks();
3837
IGuiFluidStackGroup fluidStackGroup = recipeLayout.getFluidStacks();
39-
itemStackGroup.init(0, true, 32, 19);
40-
itemStackGroup.init(1, false, 84, 19);
38+
itemStackGroup.init(0, true, 51, 18);
39+
itemStackGroup.init(1, false, 105, 9);
4140
itemStackGroup.set(ingredients);
42-
fluidStackGroup.init(0, false, 133, 3, 20, 58, 32000, true, this.fluidTankOverlay);
41+
fluidStackGroup.init(0, false, 105, 27, 18, 18, 5000, false, null); //todo convert to modularUI, change capacity to 32B
4342
fluidStackGroup.set(ingredients);
4443
}
4544

@@ -51,9 +50,9 @@ public IRecipeWrapper getRecipeWrapper(@Nonnull CokeOvenRecipe recipe) {
5150

5251
@Override
5352
public void drawExtras(Minecraft minecraft) {
54-
this.slot.draw(minecraft, 32, 19);
55-
this.slot.draw(minecraft, 84, 19);
56-
this.progressBar.draw(minecraft, 57, 20);
57-
this.fluidTank.draw(minecraft, 133, 3);
53+
this.slot.draw(minecraft, 51, 18);
54+
this.slot.draw(minecraft, 105, 9);
55+
this.progressBar.draw(minecraft, 69, 18);
56+
this.fluidTank.draw(minecraft, 105, 27);
5857
}
5958
}

src/main/java/gregtech/integration/jei/recipe/primitive/CokeOvenRecipeWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public void getIngredients(IIngredients ingredients) {
4747

4848
@Override
4949
public void drawInfo(Minecraft minecraft, int recipeWidth, int recipeHeight, int mouseX, int mouseY) {
50-
minecraft.fontRenderer.drawString(I18n.format("gregtech.recipe.duration", this.recipe.getDuration() / 20f), 0, 60, 0x111111);
50+
minecraft.fontRenderer.drawString(I18n.format("gregtech.recipe.duration", this.recipe.getDuration() / 20f), 0, 50, 0x111111);
5151
}
5252

5353
}
1.98 KB
Loading

0 commit comments

Comments
 (0)