mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-27 23:33:00 +00:00
Strict and consistent typing for GUI's Container and Inventory
This commit is contained in:
1 parent
7362286ead
commit
f4e9c61e3a
42 files changed
+131
-218
No files matched your search
@@ -18,7 +18,7 @@ import forestry.core.gui.GuiForestryTitled;
|
||||
import forestry.core.utils.EnumTankLevel;
|
||||
import forestry.core.utils.Utils;
|
||||
|
||||
public class GuiAlveary extends GuiForestryTitled<TileAlvearyPlain> {
|
||||
public class GuiAlveary extends GuiForestryTitled<ContainerAlveary, TileAlvearyPlain> {
|
||||
|
||||
public GuiAlveary(InventoryPlayer inventory, TileAlvearyPlain tile) {
|
||||
super(Defaults.TEXTURE_PATH_GUI + "/alveary.png", new ContainerAlveary(inventory, tile), tile);
|
||||
@@ -30,7 +30,7 @@ public class GuiAlveary extends GuiForestryTitled<TileAlvearyPlain> {
|
||||
protected void drawGuiContainerBackgroundLayer(float var1, int mouseX, int mouseY) {
|
||||
super.drawGuiContainerBackgroundLayer(var1, mouseX, mouseY);
|
||||
|
||||
TileAlvearyPlain machine = tile;
|
||||
TileAlvearyPlain machine = inventory;
|
||||
drawHealthMeter(guiLeft + 20, guiTop + 37, machine.getHealthScaled(46), Utils.rateTankLevel(machine.getHealthScaled(100)));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user