Class BenchWindow

All Implemented Interfaces:
MaterialContainerWindow, ValidatedWindow
Direct Known Subclasses:
CraftingWindow, ProcessingBenchWindow

public abstract class BenchWindow extends BlockWindow implements MaterialContainerWindow
  • Field Details

    • CRAFTING_UPDATE_MIN_PERCENT

      private static final float CRAFTING_UPDATE_MIN_PERCENT
      See Also:
    • CRAFTING_UPDATE_INTERVAL_MS

      private static final long CRAFTING_UPDATE_INTERVAL_MS
      See Also:
    • BENCH_UPGRADING

      protected static final String BENCH_UPGRADING
      See Also:
    • lastUpdatePercent

      private float lastUpdatePercent
    • lastUpdateTimeMs

      private long lastUpdateTimeMs
    • bench

      protected final Bench bench
    • benchState

      protected final BenchState benchState
    • windowData

      protected final com.google.gson.JsonObject windowData
    • extraResourcesSection

      @Nonnull private MaterialExtraResourcesSection extraResourcesSection
  • Constructor Details

  • Method Details

    • getData

      @Nonnull public com.google.gson.JsonObject getData()
      Specified by:
      getData in class Window
    • onOpen0

      protected boolean onOpen0()
      Specified by:
      onOpen0 in class Window
    • getBenchTierLevel

      protected int getBenchTierLevel()
    • onClose0

      public void onClose0()
      Specified by:
      onClose0 in class Window
    • updateCraftingJob

      public void updateCraftingJob(float percent)
    • updateBenchUpgradeJob

      public void updateBenchUpgradeJob(float percent)
    • checkProgressInvalidate

      private void checkProgressInvalidate(float percent)
    • updateBenchTierLevel

      public void updateBenchTierLevel(int newValue)
    • getExtraResourcesSection

      @Nonnull public MaterialExtraResourcesSection getExtraResourcesSection()
      Specified by:
      getExtraResourcesSection in interface MaterialContainerWindow
    • invalidateExtraResources

      public void invalidateExtraResources()
      Specified by:
      invalidateExtraResources in interface MaterialContainerWindow
    • isValid

      public boolean isValid()
      Specified by:
      isValid in interface MaterialContainerWindow