Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

Commit

Permalink
reverts most things, pending gt5 pr
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyfts committed Jul 11, 2023
1 parent 6b96e4c commit 47ffca1
Showing 1 changed file with 1 addition and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ public int getCapacity() {
}

// This type of machine can have different water and steam capacities.
@Override
public int getSteamCapacity() {
return 2 * getCapacity();
}
Expand Down Expand Up @@ -217,14 +218,6 @@ protected void updateFuel(IGregTechTileEntity tile, long ticks) {
}
}

@Override
protected void ventSteamIfTankIsFull() {
if ((this.mSteam != null) && (this.mSteam.amount > getSteamCapacity())) {
sendSound(SOUND_EVENT_LET_OFF_EXCESS_STEAM);
mSteam.amount = getSteamCapacity() * 3 / 4;
}
}

@Override
// Since this type of machine can have different water and steam capacities, we need to override getTankInfo() to
// support returning those different capacities.
Expand Down Expand Up @@ -296,42 +289,6 @@ public boolean allowCoverOnSide(ForgeDirection side, GT_ItemStack aCover) {
return super.allowCoverOnSide(side, aCover);
}

@Override
public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildContext) {
builder.widget(
new SlotWidget(inventoryHandler, 0).setPos(43, 25)
.setBackground(getGUITextureSet().getItemSlot(), getOverlaySlotIn()))
.widget(
new SlotWidget(inventoryHandler, 1).setPos(43, 61)
.setBackground(getGUITextureSet().getItemSlot(), getOverlaySlotOut()))
.widget(createFuelSlot()).widget(createAshSlot())
.widget(
new ProgressBar()
.setProgress(() -> mSteam == null ? 0 : (float) mSteam.amount / getSteamCapacity())
.setTexture(
getProgressbarEmpty(),
GT_UITextures.PROGRESSBAR_BOILER_STEAM,
10)
.setDirection(ProgressBar.Direction.UP).setPos(70, 25).setSize(10, 54))
.widget(
new ProgressBar().setProgress(() -> mFluid == null ? 0 : (float) mFluid.amount / getCapacity())
.setTexture(getProgressbarEmpty(), GT_UITextures.PROGRESSBAR_BOILER_WATER, 10)
.setDirection(ProgressBar.Direction.UP).setPos(83, 25).setSize(10, 54))
.widget(
new ProgressBar().setProgress(() -> (float) mTemperature / maxProgresstime())
.setTexture(getProgressbarEmpty(), GT_UITextures.PROGRESSBAR_BOILER_HEAT, 10)
.setDirection(ProgressBar.Direction.UP).setPos(96, 25).setSize(10, 54))
.widget(
new ProgressBar()
// cap minimum so that one can easily see there's fuel remaining
.setProgress(
() -> mProcessingEnergy > 0 ? Math.max((float) mProcessingEnergy / 1000, 1f / 5)
: 0)
.setTexture(getProgressbarFuel(), 14).setDirection(ProgressBar.Direction.UP)
.setPos(116, 45).setSize(14, 14))
.widget(new DrawableWidget().setDrawable(getOverlaySlotCanister()).setPos(43, 43).setSize(18, 18));
}

@Override
public GUITextureSet getGUITextureSet() {
return GUITextureSet.DEFAULT;
Expand Down

0 comments on commit 47ffca1

Please sign in to comment.