Gui cleanup

This commit is contained in:
modmuss50 2023-05-31 19:20:28 +01:00 committed by modmuss
parent 0171ef9778
commit 4ee192b4cd
48 changed files with 146 additions and 686 deletions

View file

@ -51,8 +51,6 @@ public class GuiAlloySmelter extends GuiBase<BuiltScreenHandler> {
drawSlot(drawContext, 34, 47, layer);
drawSlot(drawContext, 126, 47, layer);
drawOutputSlot(drawContext, 80, 47, layer);
builder.drawJEIButton(drawContext, this, 158, 5, layer);
}
@Override

View file

@ -53,8 +53,6 @@ public class GuiAssemblingMachine extends GuiBase<BuiltScreenHandler> {
drawSlot(drawContext, 55, 55, layer);
drawOutputSlot(drawContext, 101, 45, layer);
builder.drawJEIButton(drawContext, this, 158, 5, layer);
}
@Override

View file

@ -61,7 +61,6 @@ public class GuiBlastFurnace extends GuiBase<BuiltScreenHandler> {
drawSlot(drawContext, 50, 47, layer);
drawOutputSlotBar(drawContext, 92, 36, 2, layer);
builder.drawJEIButton(drawContext, this, 158, 5, layer);
if (hasMultiBlock) {
builder.drawHologramButton(drawContext, this, 6, 4, mouseX, mouseY, layer);
}

View file

@ -54,8 +54,6 @@ public class GuiBlockBreaker extends GuiBase<BuiltScreenHandler> {
drawCentredText(drawContext, processor.getStatusEnum().getProgressText(processor.getProgress()), 40, processor.getStatusEnum().getColor(), layer);
drawOutputSlot(drawContext, 80, 60, layer);
builder.drawJEIButton(drawContext, this, 158, 5, layer);
}
@Override

View file

@ -54,8 +54,6 @@ public class GuiBlockPlacer extends GuiBase<BuiltScreenHandler> {
drawCentredText(drawContext, processor.getStatusEnum().getProgressText(processor.getProgress()), 40, processor.getStatusEnum().getColor(), layer);
drawSlot(drawContext, 80, 60, layer);
builder.drawJEIButton(drawContext, this, 158, 5, layer);
}
@Override

View file

@ -54,8 +54,6 @@ public class GuiCentrifuge extends GuiBase<BuiltScreenHandler> {
drawSlot(drawContext, 101, 25, layer);
drawSlot(drawContext, 120, 44, layer);
drawSlot(drawContext, 101, 63, layer);
builder.drawJEIButton(drawContext, this, 158, 5, layer);
}
@Override

View file

@ -50,8 +50,6 @@ public class GuiChemicalReactor extends GuiBase<BuiltScreenHandler> {
drawSlot(drawContext, 34, 47, layer);
drawSlot(drawContext, 126, 47, layer);
drawOutputSlot(drawContext, 80, 47, layer);
builder.drawJEIButton(drawContext, this, 158, 5, layer);
}
@Override

View file

@ -49,8 +49,6 @@ public class GuiCompressor extends GuiBase<BuiltScreenHandler> {
drawSlot(drawContext, 55, 45, layer);
drawOutputSlot(drawContext, 101, 45, layer);
builder.drawJEIButton(drawContext, this, 158, 5, layer);
}
@Override

View file

@ -46,7 +46,6 @@ public class GuiDieselGenerator extends GuiBase<BuiltScreenHandler> {
final GuiBase.Layer layer = GuiBase.Layer.BACKGROUND;
drawSlot(drawContext, 25, 35, layer);
drawSlot(drawContext, 25, 55, layer);
builder.drawJEIButton(drawContext, this, 158, 5, layer);
}

View file

@ -52,8 +52,6 @@ public class GuiDistillationTower extends GuiBase<BuiltScreenHandler> {
drawSlot(drawContext, 35, 47, layer);
// Four output slots
drawOutputSlotBar(drawContext, 78, 36, 4, layer);
// JEI Button
builder.drawJEIButton(drawContext, this, 158, 5, layer);
}
@Override

View file

@ -49,8 +49,6 @@ public class GuiElectricFurnace extends GuiBase<BuiltScreenHandler> {
drawSlot(drawContext, 55, 45, layer);
drawOutputSlot(drawContext, 101, 45, layer);
builder.drawJEIButton(drawContext, this, 158, 5, layer);
}
@Override

View file

@ -49,8 +49,6 @@ public class GuiExtractor extends GuiBase<BuiltScreenHandler> {
drawSlot(drawContext, 55, 45, layer);
drawOutputSlot(drawContext, 101, 45, layer);
builder.drawJEIButton(drawContext, this, 158, 5, layer);
}
@Override

View file

@ -56,8 +56,6 @@ public class GuiFluidReplicator extends GuiBase<BuiltScreenHandler> {
drawSlot(drawContext, 124, 35, layer);
// Liquid output slot
drawSlot(drawContext, 124, 55, layer);
// JEI button
builder.drawJEIButton(drawContext, this, 158, 5, layer);
if (blockEntity.isMultiblockValid()) {
builder.drawHologramButton(drawContext, this, 6, 4, mouseX, mouseY, layer);
}

View file

@ -71,7 +71,6 @@ public class GuiFusionReactor extends GuiBase<BuiltScreenHandler> {
drawSlot(drawContext, 126, 47, layer);
drawOutputSlot(drawContext, 80, 47, layer);
builder.drawJEIButton(drawContext, this, 158, 5, layer);
if (blockEntity.isMultiblockValid()) {
builder.drawHologramButton(drawContext, this, 6, 4, mouseX, mouseY, layer);
}

View file

@ -46,7 +46,6 @@ public class GuiGasTurbine extends GuiBase<BuiltScreenHandler> {
final GuiBase.Layer layer = GuiBase.Layer.BACKGROUND;
drawSlot(drawContext, 25, 35, layer);
drawSlot(drawContext, 25, 55, layer);
builder.drawJEIButton(drawContext, this, 158, 5, layer);
}

View file

@ -45,10 +45,7 @@ public class GuiGenerator extends GuiBase<BuiltScreenHandler> {
final Layer layer = Layer.BACKGROUND;
drawSlot(drawContext, 8, 72, layer);
drawSlot(drawContext, 80, 54, layer);
builder.drawJEIButton(drawContext, this, 158, 5, layer);
}
@Override

View file

@ -48,8 +48,6 @@ public class GuiGrinder extends GuiBase<BuiltScreenHandler> {
drawSlot(drawContext, 55, 45, layer);
drawOutputSlot(drawContext, 101, 45, layer);
builder.drawJEIButton(drawContext, this, 158, 5, layer);
}
@Override

View file

@ -56,8 +56,6 @@ public class GuiImplosionCompressor extends GuiBase<BuiltScreenHandler> {
if (blockEntity.isMultiblockValid()) {
builder.drawHologramButton(drawContext, this, 6, 4, mouseX, mouseY, layer);
}
builder.drawJEIButton(drawContext, this, 158, 5, layer);
}
@Override

View file

@ -52,7 +52,6 @@ public class GuiIndustrialElectrolyzer extends GuiBase<BuiltScreenHandler> {
drawSlot(drawContext, 81, 72, layer);
//Output slots
drawOutputSlotBar(drawContext, 50, 23, 4, layer);
builder.drawJEIButton(drawContext, this, 158, 5, layer);
}
@Override

View file

@ -60,7 +60,6 @@ public class GuiIndustrialGrinder extends GuiBase<BuiltScreenHandler> {
drawSlot(drawContext, 126, 54, layer);
drawSlot(drawContext, 126, 72, layer);
builder.drawJEIButton(drawContext, this, 158, 5, layer);
if (blockEntity.isMultiblockValid()) {
builder.drawHologramButton(drawContext, this, 6, 4, mouseX, mouseY, layer);
}

View file

@ -59,7 +59,6 @@ public class GuiIndustrialSawmill extends GuiBase<BuiltScreenHandler> {
drawSlot(drawContext, 126, 43, layer);
drawSlot(drawContext, 126, 61, layer);
builder.drawJEIButton(drawContext, this, 158, 5, layer);
if (blockEntity.isMultiblockValid()) {
builder.drawHologramButton(drawContext, this, 6, 4, mouseX, mouseY, layer);
}

View file

@ -49,7 +49,6 @@ public class GuiPlasmaGenerator extends GuiBase<BuiltScreenHandler> {
final GuiBase.Layer layer = GuiBase.Layer.BACKGROUND;
drawSlot(drawContext, 25, 35, layer);
drawSlot(drawContext, 25, 55, layer);
builder.drawJEIButton(drawContext, this, 158, 5, layer);
}

View file

@ -61,7 +61,6 @@ public class GuiRollingMachine extends GuiBase<BuiltScreenHandler> {
drawSlot(drawContext, 8, 70, layer);
drawOutputSlot(drawContext, 124, gridYPos + 18, layer);
builder.drawJEIButton(drawContext, this, 158, 5, layer);
builder.drawLockButton(drawContext, this, 130, 4, mouseX, mouseY, layer, rollingMachine.locked);
}

View file

@ -51,8 +51,6 @@ public class GuiScrapboxinator extends GuiBase<BuiltScreenHandler> {
drawSlot(drawContext, 55, 45, layer);
// Output slot
drawOutputSlot(drawContext, 101, 45, layer);
builder.drawJEIButton(drawContext, this, 158, 5, layer);
}
@Override

View file

@ -46,7 +46,6 @@ public class GuiSemifluidGenerator extends GuiBase<BuiltScreenHandler> {
final GuiBase.Layer layer = GuiBase.Layer.BACKGROUND;
drawSlot(drawContext, 25, 35, layer);
drawSlot(drawContext, 25, 55, layer);
builder.drawJEIButton(drawContext, this, 158, 5, layer);
}

View file

@ -51,8 +51,6 @@ public class GuiSolidCanningMachine extends GuiBase<BuiltScreenHandler> {
drawSlot(drawContext, 34, 47, layer);
drawSlot(drawContext, 126, 47, layer);
drawOutputSlot(drawContext, 80, 47, layer);
builder.drawJEIButton(drawContext, this, 158, 5, layer);
}
@Override

View file

@ -46,7 +46,6 @@ public class GuiThermalGenerator extends GuiBase<BuiltScreenHandler> {
final GuiBase.Layer layer = GuiBase.Layer.BACKGROUND;
drawSlot(drawContext, 25, 35, layer);
drawSlot(drawContext, 25, 55, layer);
builder.drawJEIButton(drawContext, this, 158, 5, layer);
}

View file

@ -54,7 +54,6 @@ public class GuiVacuumFreezer extends GuiBase<BuiltScreenHandler> {
// Output slot
drawOutputSlot(drawContext, 101, 45, layer);
builder.drawJEIButton(drawContext, this, 158, 5, layer);
if (blockEntity.isMultiblockValid()) {
builder.drawHologramButton(drawContext, this, 6, 4, mouseX, mouseY, layer);
}

View file

@ -53,8 +53,6 @@ public class GuiWireMill extends GuiBase<BuiltScreenHandler> {
drawSlot(drawContext, 101, 45, layer);
drawOutputSlot(drawContext, 101, 45, layer);
builder.drawJEIButton(drawContext, this, 158, 5, layer);
}
@Override