This commit is contained in:
modmuss50 2017-12-17 21:24:25 +00:00
parent dce7e43c4f
commit 82eb0f62d6
No known key found for this signature in database
GPG key ID: 773D17BE8BF49C82
2 changed files with 6 additions and 5 deletions

View file

@ -52,7 +52,7 @@ public class GuiAESU extends GuiBase {
this.drawSlot(62, 45, layer); this.drawSlot(62, 45, layer);
this.drawSlot(98, 45, layer); this.drawSlot(98, 45, layer);
this.drawArmourSlots(8, 18, layer); this.drawArmourSlots(8, 18, layer);
this.builder.drawEnergyOutput(this, 171, 61, (int) this.tile.getBaseMaxOutput(), layer); this.builder.drawEnergyOutput(this, 171, 61, this.tile.getCurrentOutput(), layer);
this.builder.drawUpDownButtons(this, 121, 79, layer); this.builder.drawUpDownButtons(this, 121, 79, layer);
} }

View file

@ -113,11 +113,12 @@ public class TileAdjustableSU extends TileEnergyStorage implements IContainerPro
return OUTPUT; return OUTPUT;
} }
public int getBaseMaxOutputInt() {
public int getCurrentOutput() {
return OUTPUT; return OUTPUT;
} }
public void setBaseMaxOutput(int output) { public void setCurentOutput(int output) {
this.OUTPUT = output; this.OUTPUT = output;
} }
@ -125,6 +126,6 @@ public class TileAdjustableSU extends TileEnergyStorage implements IContainerPro
public BuiltContainer createContainer(EntityPlayer player) { public BuiltContainer createContainer(EntityPlayer player) {
return new ContainerBuilder("aesu").player(player.inventory).inventory().hotbar().armor() return new ContainerBuilder("aesu").player(player.inventory).inventory().hotbar().armor()
.complete(8, 18).addArmor().addInventory().tile(this).energySlot(0, 62, 45).energySlot(1, 98, 45) .complete(8, 18).addArmor().addInventory().tile(this).energySlot(0, 62, 45).energySlot(1, 98, 45)
.syncEnergyValue().syncIntegerValue(this::getBaseMaxOutputInt, this::setBaseMaxOutput).addInventory().create(this); .syncEnergyValue().syncIntegerValue(this::getCurrentOutput, this::setCurentOutput).addInventory().create(this);
} }
} }