Compare commits

...

4 Commits

Author SHA1 Message Date
Boblet
aff1d337ca here i come sanfrandisco 2026-07-08 15:15:31 +02:00
HbmMods
93a3c91a5b
Merge pull request #2998 from Adam29Adam29/master
Reworked the texture of the electric furnace and its GUI
2026-07-08 15:06:45 +02:00
Adam
90d99a3289
Electric Furnace Texture Change 2026-07-08 14:15:52 +02:00
Adam
38947ac97a
GUI Texture Change for Electric Furnace 2026-07-08 14:14:15 +02:00
13 changed files with 19 additions and 29 deletions

View File

@ -22,20 +22,20 @@ public class ContainerElectricFurnace extends Container {
diFurnace = tedf; diFurnace = tedf;
this.addSlotToContainer(new Slot(tedf, 0, 56, 53)); this.addSlotToContainer(new Slot(tedf, 0, 152, 54));
this.addSlotToContainer(new Slot(tedf, 1, 56, 17)); this.addSlotToContainer(new Slot(tedf, 1, 20, 35));
this.addSlotToContainer(new SlotSmelting(invPlayer.player, tedf, 2, 116, 35)); this.addSlotToContainer(new SlotSmelting(invPlayer.player, tedf, 2, 80, 35));
//Upgrades //Upgrades
this.addSlotToContainer(new SlotUpgrade(tedf, 3, 147, 34)); this.addSlotToContainer(new SlotUpgrade(tedf, 3, 111, 34));
for(int i = 0; i < 3; i++) { for(int i = 0; i < 3; i++) {
for(int j = 0; j < 9; j++) { for(int j = 0; j < 9; j++) {
this.addSlotToContainer(new Slot(invPlayer, j + i * 9 + 9, 8 + j * 18, 84 + i * 18)); this.addSlotToContainer(new Slot(invPlayer, j + i * 9 + 9, 8 + j * 18, 104 + i * 18));
} }
} }
for(int i = 0; i < 9; i++) { for(int i = 0; i < 9; i++) {
this.addSlotToContainer(new Slot(invPlayer, i, 8 + i * 18, 142)); this.addSlotToContainer(new Slot(invPlayer, i, 8 + i * 18, 162));
} }
} }

View File

@ -225,7 +225,7 @@ public class ContainerPneumoStorageAccess extends Container implements ICustomPa
held = slot.getStack().copy(); held = slot.getStack().copy();
held.stackSize = 1; held.stackSize = 1;
} }
if(held.stackSize <= 0) held = null; if(held != null && held.stackSize <= 0) held = null;
this.player.inventory.setItemStack(held); this.player.inventory.setItemStack(held);
sendClickToServer(ClickType.RIGHT_CLICK, hash); sendClickToServer(ClickType.RIGHT_CLICK, hash);
return null; return null;

View File

@ -36,7 +36,6 @@ public class ContainerPneumoStorageMono extends ContainerBase {
if(index < 0 || index >= 3) { if(index < 0 || index >= 3) {
return super.slotClick(index, button, mode, player); return super.slotClick(index, button, mode, player);
} }
Slot slot = this.getSlot(index); Slot slot = this.getSlot(index);
TileEntityPneumoStorageMono mono = (TileEntityPneumoStorageMono) this.tile; TileEntityPneumoStorageMono mono = (TileEntityPneumoStorageMono) this.tile;

View File

@ -23,7 +23,7 @@ public class GUIMachineElectricFurnace extends GuiInfoContainer {
diFurnace = tedf; diFurnace = tedf;
this.xSize = 176; this.xSize = 176;
this.ySize = 166; this.ySize = 186;
} }
@Override @Override
@ -62,18 +62,19 @@ public class GUIMachineElectricFurnace extends GuiInfoContainer {
diFurnace = (TileEntityMachineElectricFurnace) diFurnace.getWorldObj().getTileEntity(diFurnace.xCoord, diFurnace.yCoord, diFurnace.zCoord); diFurnace = (TileEntityMachineElectricFurnace) diFurnace.getWorldObj().getTileEntity(diFurnace.xCoord, diFurnace.yCoord, diFurnace.zCoord);
if(diFurnace.hasPower()) { if(diFurnace.hasPower()) {
int i = (int)diFurnace.getPowerScaled(52); int i = (int)diFurnace.getPowerScaled(34);
drawTexturedModalRect(guiLeft + 20, guiTop + 69 - i, 200, 52 - i, 16, i); drawTexturedModalRect(guiLeft + 152, guiTop + 52 - i, 176, 64 - i, 16, i);
} }
if(diFurnace.getWorldObj().getBlock(diFurnace.xCoord, diFurnace.yCoord, diFurnace.zCoord) == ModBlocks.machine_electric_furnace_on) { if(diFurnace.getWorldObj().getBlock(diFurnace.xCoord, diFurnace.yCoord, diFurnace.zCoord) == ModBlocks.machine_electric_furnace_on) {
drawTexturedModalRect(guiLeft + 56, guiTop + 35, 176, 0, 16, 16); drawTexturedModalRect(guiLeft + 45, guiTop + 20, 192, 12, 18, 16);
drawTexturedModalRect(guiLeft + 45, guiTop + 47, 192, 36, 18, 16);
} }
int j1 = diFurnace.getProgressScaled(24); int j1 = diFurnace.getProgressScaled(28);
drawTexturedModalRect(guiLeft + 79, guiTop + 34, 176, 17, j1 + 1, 17); drawTexturedModalRect(guiLeft + 43, guiTop + 36, 176, 0, j1, 12);
this.drawInfoPanel(guiLeft + 151, guiTop + 19, 8, 8, 8); this.drawInfoPanel(guiLeft + 116, guiTop + 20, 8, 8, 8);
} }
} }

View File

@ -103,7 +103,7 @@ public class GUIScreenRadioAUTOCAL extends GuiScreen {
if(checkClick(x, y, 144, 36, 18, 18)) { if(checkClick(x, y, 144, 36, 18, 18)) {
try { try {
File uploadFolder = new File(MainRegistry.configDir.getParentFile(), "hbmComputerUpload"); File uploadFolder = new File(MainRegistry.configDir.getParentFile(), "hbmComputerUpload");
File doc = new File(uploadFolder, "documentation.md"); File doc = new File(uploadFolder, "documentation_v1.1.md");
if(!uploadFolder.exists()) uploadFolder.mkdir(); if(!uploadFolder.exists()) uploadFolder.mkdir();
if(!doc.exists()) { if(!doc.exists()) {
doc.createNewFile(); doc.createNewFile();
@ -127,18 +127,7 @@ public class GUIScreenRadioAUTOCAL extends GuiScreen {
script.setExecutable(false); script.setExecutable(false);
return; return;
} }
/*FileReader reader = new FileReader(script);
BufferedReader buffer = new BufferedReader(reader);
String[] lines = buffer.lines().toArray(String[]::new);
buffer.close();
// this is going to blow the fuck up once we hit the max packet size, but let's ignore that for now
data = new NBTTagCompound();
StringBuilder builder = new StringBuilder();
for(int l = 0; l < lines.length; l++) {
builder.append(lines[i]);
if(l < lines.length - 1) builder.append("\n"); // yeah why the fuck not
}
data.setString("payload", builder.toString());*/
byte[] bytes = Files.readAllBytes(Paths.get(script.toURI())); byte[] bytes = Files.readAllBytes(Paths.get(script.toURI()));
data = new NBTTagCompound(); data = new NBTTagCompound();
data.setString("payload", new String(bytes, StandardCharsets.UTF_8)); data.setString("payload", new String(bytes, StandardCharsets.UTF_8));

View File

@ -51,8 +51,10 @@ public class RenderLandmine extends TileEntitySpecialRenderer {
} }
if(block == ModBlocks.mine_fat) { if(block == ModBlocks.mine_fat) {
GL11.glScaled(0.25D, 0.25D, 0.25D); GL11.glScaled(0.25D, 0.25D, 0.25D);
GL11.glShadeModel(GL11.GL_SMOOTH);
bindTexture(ResourceManager.mine_fat_tex); bindTexture(ResourceManager.mine_fat_tex);
ResourceManager.mine_fat.renderAll(); ResourceManager.mine_fat.renderAll();
GL11.glShadeModel(GL11.GL_FLAT);
} }
if(block == ModBlocks.mine_naval) { if(block == ModBlocks.mine_naval) {
GL11.glScaled(1D, 1D, 1D); GL11.glScaled(1D, 1D, 1D);

View File

@ -294,4 +294,3 @@ public class TileEntityCraneExtractor extends TileEntityCraneBase implements IGU
return new int[] {0, 9}; return new int[] {0, 9};
} }
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 510 B

After

Width:  |  Height:  |  Size: 640 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 528 B

After

Width:  |  Height:  |  Size: 633 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 588 B

After

Width:  |  Height:  |  Size: 695 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 577 B

After

Width:  |  Height:  |  Size: 715 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 490 B

After

Width:  |  Height:  |  Size: 655 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB